1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2025-12-29 04:20:22 +08:00

chore: 重构权限路由守卫

This commit is contained in:
zclzone
2024-03-31 18:33:58 +08:00
parent c754d02dc0
commit 961ad6af7b
7 changed files with 1040 additions and 586 deletions

View File

@@ -14,6 +14,7 @@ import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
import simpleHtmlPlugin from 'vite-plugin-simple-html'
import removeNoMatch from 'vite-plugin-router-warn'
import { pluginPagePathes, pluginIcons } from './build/plugin-isme'
export default defineConfig(({ command, mode }) => {
@@ -46,6 +47,8 @@ export default defineConfig(({ command, mode }) => {
pluginPagePathes(),
// 自定义插件用于生成自定义icon并添加到虚拟模块
pluginIcons(),
// 移除非必要的vue-router动态路由警告: No match found for location with path
removeNoMatch(),
],
resolve: {
alias: {