Skip to content

Conversation

@birght
Copy link

@birght birght commented Feb 11, 2025

在 package.json 里添加 "type": "module"
在 vite.config.ts 里使用 defineConfig
用动态导入 package.json
把 postcss.config.js 改成 postcss.config.cjs

@vercel
Copy link

vercel bot commented Feb 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
naive-ui-admin ❌ Failed (Inspect) Mar 24, 2025 6:30am

const router = createRouter({
history: createWebHistory(),
routes: constantRouter,
routes: [...constantRouter, ...asyncRoutes],
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里似乎不太妥,asyncRoutes期望是有权限控制的,在路由守卫里面会根据权限动态添加进去

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我再尝试其他处理方式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants