From 66b3ca53db0d88c0579cda3f4500cb12c3b85f7a Mon Sep 17 00:00:00 2001 From: aeizzz Date: Mon, 13 Feb 2023 16:07:12 +0800 Subject: [PATCH] =?UTF-8?q?=20:sparkles:=20Introducing=20new=20features.?= =?UTF-8?q?=20=E5=AE=8C=E6=88=90=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/table.ts | 2 +- src/router/backEnd.ts | 21 +--- src/router/route.ts | 14 +++ src/views/personal/index.vue | 223 ++++++++++++++++------------------- 4 files changed, 117 insertions(+), 143 deletions(-) diff --git a/src/hooks/table.ts b/src/hooks/table.ts index d6686345..3ee39e80 100644 --- a/src/hooks/table.ts +++ b/src/hooks/table.ts @@ -1,5 +1,5 @@ import { ElMessage } from "element-plus"; -import other, { deepMerge } from "../utils/other"; +import other from "../utils/other"; export interface BasicTableProps { // 是否在创建页面时,调用数据列表接口 diff --git a/src/router/backEnd.ts b/src/router/backEnd.ts index 241ec9c1..cd423bc4 100644 --- a/src/router/backEnd.ts +++ b/src/router/backEnd.ts @@ -25,25 +25,6 @@ const layouModules: any = import.meta.glob('../layout/routerView/*.{vue,tsx}'); const viewsModules: any = import.meta.glob('../views/**/*.{vue,tsx}'); const dynamicViewsModules: Record = Object.assign({}, { ...layouModules }, { ...viewsModules }); -const home = [ - { - path: '/home', - name: 'home', - component: () => import('/@/views/home/index.vue'), - meta: { - title: 'router.home', - isLink: '', - isHide: false, - isKeepAlive: true, - isAffix: true, - isIframe: false, - icon: 'iconfont icon-shouye', - }, - }, -] - - - /** * 后端控制路由:初始化方法,防止刷新时路由丢失 * @method NextLoading 界面 loading 动画开始执行 @@ -67,7 +48,7 @@ export async function initBackEndControlRoutes() { // 存储接口原始路由(未处理component),根据需求选择使用 useRequestOldRoutes().setRequestOldRoutes(JSON.parse(JSON.stringify(res.data))); // 处理路由(component),替换 dynamicRoutes(/@/router/route)第一个顶级 children 的路由 - dynamicRoutes[0].children = [...home,...await backEndComponent(res.data), ...staticConfigRoutes] + dynamicRoutes[0].children = [...staticConfigRoutes,...await backEndComponent(res.data), ] // 添加动态路由 await setAddRoute(); // 设置路由到 pinia routesList 中(已处理成多级嵌套路由)及缓存多级嵌套数组处理后的一维数组 diff --git a/src/router/route.ts b/src/router/route.ts index ff1a7509..3f3c62d2 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -99,6 +99,20 @@ export const notFoundAndNoPower = [ * @returns 返回路由菜单数据 */ export const staticConfigRoutes: Array = [ + { + path: '/home', + name: 'home', + component: () => import('/@/views/home/index.vue'), + meta: { + title: 'router.home', + isLink: '', + isHide: false, + isKeepAlive: true, + isAffix: true, + isIframe: false, + icon: 'iconfont icon-shouye', + }, + }, { path: '/personal', name: 'personal', diff --git a/src/views/personal/index.vue b/src/views/personal/index.vue index 4ca238e1..acbcdd31 100644 --- a/src/views/personal/index.vue +++ b/src/views/personal/index.vue @@ -2,12 +2,14 @@
- +
- - + +
@@ -43,86 +45,56 @@ - - - - -
- -
-
-
- - - - - - -
- -
-
{{ v.title }}
-
{{ v.msg }}
-
-
-
-
-
-
-
基本信息
- + + + + + + + + + + + + - - + + - - + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - + + + + + + + - + @@ -132,51 +104,6 @@ -
账号安全
-
-
-
-
账户密码
-
当前密码强度:强
-
-
- 立即修改 -
-
-
-
-
-
-
密保手机
-
已绑定手机:132****4108
-
-
- 立即修改 -
-
-
-
-
-
-
密保问题
-
已设置密保问题,账号安全大幅度提升
-
-
- 立即设置 -
-
-
-
-
-
-
绑定QQ
-
已绑定QQ:110****566
-
-
- 立即设置 -
-
-
@@ -186,22 +113,74 @@