mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2025-04-30 22:29:01 +08:00
Merge branch '2.x' of https://gitee.com/isme-admin/vue-naive-admin into 2.x
This commit is contained in:
commit
d3d002770b
@ -59,9 +59,9 @@ Vue Naive Admin 提供一套后端代码,技术栈使用 Nestjs + TypeOrm + My
|
|||||||
|
|
||||||
> 注:有个比较常见的问题,就是如何添加菜单和修改菜单,由于项目是由后端控制菜单资源的,所以需要对接后端后在资源管理功能对菜单进行增删改,然后在角色管理功能给对应角色进行授权。具体如何对接后端,请参考 [项目文档](https://docs.isme.top/web/#/624306705/188522224)。当然,可能有些菜单你不想通过权限控制,那么你可以在 `/src/settings.js` 文件添加 basePermissions,只需对齐菜单资源的结构即可,结构可以参照 [接口文档](https://apifox.com/apidoc/shared-ff4a4d32-c0d1-4caf-b0ee-6abc130f734a/api-134536978)。
|
> 注:有个比较常见的问题,就是如何添加菜单和修改菜单,由于项目是由后端控制菜单资源的,所以需要对接后端后在资源管理功能对菜单进行增删改,然后在角色管理功能给对应角色进行授权。具体如何对接后端,请参考 [项目文档](https://docs.isme.top/web/#/624306705/188522224)。当然,可能有些菜单你不想通过权限控制,那么你可以在 `/src/settings.js` 文件添加 basePermissions,只需对齐菜单资源的结构即可,结构可以参照 [接口文档](https://apifox.com/apidoc/shared-ff4a4d32-c0d1-4caf-b0ee-6abc130f734a/api-134536978)。
|
||||||
|
|
||||||
## 使用这个模板创建Github仓库
|
## 使用这个模板创建 Github 仓库
|
||||||
|
|
||||||
[使用这个模板创建仓库](https://github.com/antfu/vitesse-lite/generate).
|
[使用这个模板创建仓库](https://github.com/zclzone/vue-naive-admin/generate).
|
||||||
|
|
||||||
## 版权说明
|
## 版权说明
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<link rel="icon" href="/favicon.png" />
|
<link rel="icon" href="/favicon.png" />
|
||||||
<link rel="stylesheet" href="/resource/loading.css" />
|
<link rel="stylesheet" href="/resource/loading.css" />
|
||||||
|
<title>%VITE_TITLE%</title>
|
||||||
<style>
|
<style>
|
||||||
.loading-container {
|
.loading-container {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
@ -76,7 +77,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<title><%= title %></title>
|
|
||||||
</head>
|
</head>
|
||||||
<body class="dark:text-#e9e9e9 auto-bg">
|
<body class="dark:text-#e9e9e9 auto-bg">
|
||||||
<div id="app">
|
<div id="app">
|
||||||
|
@ -41,7 +41,6 @@
|
|||||||
"unplugin-vue-components": "^0.26.0",
|
"unplugin-vue-components": "^0.26.0",
|
||||||
"vite": "^5.2.11",
|
"vite": "^5.2.11",
|
||||||
"vite-plugin-router-warn": "^1.0.0",
|
"vite-plugin-router-warn": "^1.0.0",
|
||||||
"vite-plugin-simple-html": "^0.1.2",
|
|
||||||
"vite-plugin-vue-devtools": "^7.2.0"
|
"vite-plugin-vue-devtools": "^7.2.0"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
|
5876
pnpm-lock.yaml
generated
5876
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -14,7 +14,6 @@ import Unocss from 'unocss/vite'
|
|||||||
import AutoImport from 'unplugin-auto-import/vite'
|
import AutoImport from 'unplugin-auto-import/vite'
|
||||||
import Components from 'unplugin-vue-components/vite'
|
import Components from 'unplugin-vue-components/vite'
|
||||||
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
|
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
|
||||||
import simpleHtmlPlugin from 'vite-plugin-simple-html'
|
|
||||||
import removeNoMatch from 'vite-plugin-router-warn'
|
import removeNoMatch from 'vite-plugin-router-warn'
|
||||||
import { pluginPagePathes, pluginIcons } from './build/plugin-isme'
|
import { pluginPagePathes, pluginIcons } from './build/plugin-isme'
|
||||||
|
|
||||||
@ -37,14 +36,6 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
resolvers: [NaiveUiResolver()],
|
resolvers: [NaiveUiResolver()],
|
||||||
dts: false,
|
dts: false,
|
||||||
}),
|
}),
|
||||||
simpleHtmlPlugin({
|
|
||||||
minify: isBuild,
|
|
||||||
inject: {
|
|
||||||
data: {
|
|
||||||
title: VITE_TITLE,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
// 自定义插件,用于生成页面文件的path,并添加到虚拟模块
|
// 自定义插件,用于生成页面文件的path,并添加到虚拟模块
|
||||||
pluginPagePathes(),
|
pluginPagePathes(),
|
||||||
// 自定义插件,用于生成自定义icon,并添加到虚拟模块
|
// 自定义插件,用于生成自定义icon,并添加到虚拟模块
|
||||||
|
Loading…
x
Reference in New Issue
Block a user