Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复了vscode运行警告和vue-router加载警告 #307

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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

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) Feb 11, 2025 9:18am

@@ -45,7 +45,7 @@ export const constantRouter: RouteRecordRaw[] = [LoginRoute, RootRoute, Redirect

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