index.js 297 B

1234567891011121314
  1. // import React from 'react';
  2. import App from './app';
  3. export default {
  4. mode: () => {
  5. return Promise.resolve({ default: App });
  6. },
  7. rootPath: '/dashboard',
  8. apiToken: 'token',
  9. loginAuth(route, { user }) {
  10. if (route.needLogin && !user.login) return false;
  11. return true;
  12. },
  13. };