From cbe539c7276e3dae266d85eda644254de0570268 Mon Sep 17 00:00:00 2001 From: RealityBoy <1923740402@qq.com> Date: Mon, 22 Aug 2022 15:49:29 +0800 Subject: [PATCH] Refactor/tags (#332) * refactor: tags * chore: update * chore: update * chore: update * chore: update --- mock/asyncRoutes.ts | 18 +- src/components/ReIcon/src/Select.vue | 2 +- src/components/ReSeamlessScroll/src/index.vue | 2 +- src/layout/components/sidebar/breadCrumb.vue | 107 ++--- src/layout/components/tag/index.vue | 370 +++++------------- src/layout/hooks/useTag.ts | 218 +++++++++++ src/layout/types.ts | 1 + src/router/index.ts | 80 +--- src/router/types.ts | 1 - src/router/utils.ts | 5 +- src/store/modules/multiTags.ts | 20 +- src/store/modules/types.ts | 1 + src/views/tabs/hooks.ts | 54 ++- src/views/tabs/index.vue | 67 +++- src/views/tabs/params-detail.vue | 14 + .../tabs/{detail.vue => query-detail.vue} | 6 +- types/index.ts | 4 +- uno.config.ts | 2 +- 18 files changed, 516 insertions(+), 456 deletions(-) create mode 100644 src/layout/hooks/useTag.ts create mode 100644 src/views/tabs/params-detail.vue rename src/views/tabs/{detail.vue => query-detail.vue} (59%) diff --git a/mock/asyncRoutes.ts b/mock/asyncRoutes.ts index 050c130a2..ce56a6800 100644 --- a/mock/asyncRoutes.ts +++ b/mock/asyncRoutes.ts @@ -123,13 +123,19 @@ const tabsRouter = { } }, { - path: "/tabs/detail", - name: "TabDetail", + path: "/tabs/query-detail", + name: "TabQueryDetail", meta: { - title: "", - showLink: false, - dynamicLevel: 3, - refreshRedirect: "/tabs/index" + // 不在menu菜单中显示 + showLink: false + } + }, + { + path: "/tabs/params-detail/:id", + component: "params-detail", + name: "TabParamsDetail", + meta: { + showLink: false } } ] diff --git a/src/components/ReIcon/src/Select.vue b/src/components/ReIcon/src/Select.vue index 7528f8365..025348b68 100644 --- a/src/components/ReIcon/src/Select.vue +++ b/src/components/ReIcon/src/Select.vue @@ -156,7 +156,7 @@ watch( > -