为什么配置了config/routes.ts和config/config.ts不起作用呢? #6026
Unanswered
tanweiweiweiweiwei
asked this question in
Q&A
Replies: 2 comments
-
信息太少了,帮不了你。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
export default [ 这个 component 写的不对,起码写个 '@/pages/index',核对下文件路径 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
按照官网的步骤配置的
// config/routes.ts
export default [
{ exact: true, path: '/', component: 'index' },
];
// config/config.ts
import { defineConfig } from 'umi';
import routes from './routes';
export default defineConfig({
routes: routes,
});
Beta Was this translation helpful? Give feedback.
All reactions