+
路由名称
如果需要开启缓存,需保证页面 defineOptions 中的 name
与此处一致,建议使用驼峰。
-
+
+
+
+
@@ -239,7 +242,7 @@
prop="routePath"
>
-
+
路由路径
@@ -247,7 +250,9 @@
开头,菜单项不用。例如:系统管理目录
/system,系统管理下的用户管理菜单 user。
-
+
+
+
@@ -264,14 +269,16 @@
prop="component"
>
-
+
组件路径
组件页面完整路径,相对于 src/views/,如
system/user/index,缺省后缀 .vue
-
+
+
+
@@ -292,13 +299,15 @@
-
+
路由参数
组件页面使用 `useRoute().query.参数名` 获取路由参数值。
-
+
+
+
@@ -370,7 +379,7 @@
"
>
-
+
始终显示
@@ -380,7 +389,9 @@
如果是叶子节点,请选择“否”。
-
+
+
+
@@ -393,7 +404,7 @@
开启
diff --git a/src/views/system/notice/components/NoticeDetail.vue b/src/views/system/notice/components/NoticeDetail.vue
index 5ed9f2a5..f4f1acdf 100644
--- a/src/views/system/notice/components/NoticeDetail.vue
+++ b/src/views/system/notice/components/NoticeDetail.vue
@@ -18,7 +18,9 @@
-
+
+
+
diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue
index 1b9e3fc4..f25054fa 100644
--- a/src/views/system/notice/index.vue
+++ b/src/views/system/notice/index.vue
@@ -29,11 +29,11 @@
-
+
搜索
-
+
重置
@@ -47,7 +47,7 @@
type="success"
@click="handleOpenDialog()"
>
-
+
新增通知
-
+
删除
diff --git a/src/views/system/notice/my-notice.vue b/src/views/system/notice/my-notice.vue
index caf17bc8..885cc4fb 100644
--- a/src/views/system/notice/my-notice.vue
+++ b/src/views/system/notice/my-notice.vue
@@ -12,11 +12,15 @@
-
+
+
+
搜索
-
+
+
+
重置
diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue
index 2957cb89..ab0962f3 100644
--- a/src/views/system/role/index.vue
+++ b/src/views/system/role/index.vue
@@ -13,11 +13,11 @@
-
+
搜索
-
+
重置
@@ -27,7 +27,9 @@
-
+
+
+
新增
-
+
+
+
删除
@@ -69,7 +73,7 @@
link
@click="handleOpenAssignPermDialog(scope.row)"
>
-
+
分配权限
-
+
编辑
-
+
删除
@@ -172,13 +176,15 @@
placeholder="菜单权限名称"
>
-
+
-
+
+
+
{{ isExpanded ? "收缩" : "展开" }}
如果只需勾选菜单权限,不需要勾选子菜单或者按钮权限,请关闭父子联动
-
+ >
+
+
diff --git a/src/views/system/user/dept-tree.vue b/src/views/system/user/dept-tree.vue
index 2f386063..00cda400 100644
--- a/src/views/system/user/dept-tree.vue
+++ b/src/views/system/user/dept-tree.vue
@@ -3,7 +3,7 @@
-
+
diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue
index b90596f5..b3f0f98c 100644
--- a/src/views/system/user/index.vue
+++ b/src/views/system/user/index.vue
@@ -48,11 +48,11 @@
-
+
搜索
-
+
重置
@@ -68,7 +68,7 @@
type="success"
@click="handleOpenDialog()"
>
-
+
新增
-
+
删除
-
+
导入
-
+
导出
@@ -163,7 +163,7 @@
link
@click="hancleResetPassword(scope.row)"
>
-
+
重置密码
-
+
编辑
-
+
删除
diff --git a/tsconfig.json b/tsconfig.json
index f6db304b..7d515579 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -21,7 +21,7 @@
"paths": {
"@/*": ["src/*"]
},
- "types": ["vite/client", "unplugin-icons/types/vue", "element-plus/global"]
+ "types": ["vite/client", "element-plus/global"]
},
"include": [
"mock/**/*.ts",
diff --git a/vite.config.ts b/vite.config.ts
index 74aed0ea..3cf1fe97 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -5,8 +5,6 @@ import { UserConfig, ConfigEnv, loadEnv, defineConfig } from "vite";
import AutoImport from "unplugin-auto-import/vite";
import Components from "unplugin-vue-components/vite";
import { ElementPlusResolver } from "unplugin-vue-components/resolvers";
-import Icons from "unplugin-icons/vite";
-import IconsResolver from "unplugin-icons/resolver";
import { createSvgIconsPlugin } from "vite-plugin-svg-icons";
import mockDevServerPlugin from "vite-plugin-mock-dev-server";
@@ -88,8 +86,6 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
ElementPlusResolver({
importStyle: "sass",
}),
- // 自动导入图标组件
- IconsResolver({}),
],
eslintrc: {
// 是否自动生成 eslint 规则,建议生成之后设置 false
@@ -110,11 +106,6 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
ElementPlusResolver({
importStyle: "sass",
}),
- // 自动注册图标组件
- IconsResolver({
- // element-plus图标库,其他图标库 https://icon-sets.iconify.design/
- enabledCollections: ["ep"],
- }),
],
// 指定自定义组件位置(默认:src/components)
dirs: ["src/components", "src/**/components"],
@@ -122,10 +113,6 @@ export default defineConfig(({ mode }: ConfigEnv): UserConfig => {
dts: false,
// dts: "src/types/components.d.ts",
}),
- Icons({
- // 自动安装图标库
- autoInstall: true,
- }),
createSvgIconsPlugin({
// 指定需要缓存的图标文件夹
iconDirs: [resolve(pathSrc, "assets/icons")],