From 19a0f1233681b51e942817d5b8638db2099f6677 Mon Sep 17 00:00:00 2001 From: "WANGFAN\\wangf" <15871339963@163.com> Date: Thu, 9 Jan 2025 18:12:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E6=8A=A5=E9=94=99=E6=97=B6layout=E5=B8=83=E5=B1=80col?= =?UTF-8?q?umn=E6=8E=92=E5=88=97=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E9=9D=9E=E5=BD=93=E5=89=8Dtab=E9=A1=B5?= =?UTF-8?q?=E4=B8=8D=E4=BC=9A=E9=87=8D=E5=AE=9A=E5=90=91=E5=88=B0=E6=9C=AB?= =?UTF-8?q?=E5=B0=BEtab=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + pnpm-lock.yaml | 8 ++ src/lang/modules/enUS.ts | 1 + src/lang/modules/zhCN.ts | 1 + src/layout/components/Aside/index copy.vue | 75 +++++++++++++++++++ src/layout/components/Tabs/index.vue | 1 + src/layout/layout-defaults/index.vue | 3 +- src/layout/layout-mixing/index.vue | 2 +- src/mock/_data/system_menu.ts | 17 +++++ src/views/component/barcode/barcode.vue | 36 +++++++++ .../fingerprintjs2/fingerprintjs2.vue | 18 +++-- src/vite-env.d.ts | 1 + 12 files changed, 155 insertions(+), 9 deletions(-) create mode 100644 src/layout/components/Aside/index copy.vue create mode 100644 src/views/component/barcode/barcode.vue diff --git a/package.json b/package.json index 800ce36..79251a3 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "codemirror": "^6.0.1", "driver.js": "^1.3.1", "fingerprintjs2": "^2.1.4", + "jsbarcode": "^3.11.6", "nprogress": "^0.2.0", "pinia": "^2.1.7", "pinia-plugin-persistedstate": "^3.2.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f018f2c..513de83 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -47,6 +47,9 @@ importers: fingerprintjs2: specifier: ^2.1.4 version: 2.1.4 + jsbarcode: + specifier: ^3.11.6 + version: 3.11.6 nprogress: specifier: ^0.2.0 version: 0.2.0 @@ -2690,6 +2693,9 @@ packages: resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} hasBin: true + jsbarcode@3.11.6: + resolution: {integrity: sha512-G5TKGyKY1zJo0ZQKFM1IIMfy0nF2rs92BLlCz+cU4/TazIc4ZH+X1GYeDRt7TKjrYqmPfTjwTBkU/QnQlsYiuA==} + jsesc@2.5.2: resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} engines: {node: '>=4'} @@ -6988,6 +6994,8 @@ snapshots: dependencies: argparse: 2.0.1 + jsbarcode@3.11.6: {} + jsesc@2.5.2: {} json-buffer@3.0.1: {} diff --git a/src/lang/modules/enUS.ts b/src/lang/modules/enUS.ts index 4120285..7503977 100644 --- a/src/lang/modules/enUS.ts +++ b/src/lang/modules/enUS.ts @@ -57,6 +57,7 @@ export default { ["icon-selector"]: "icon-selector", ["user-center"]: "user-center", ["fingerprintjs2"]: "fingerprintjs2", + ["barcode"]: "barcode", ["markdown"]: "Markdown", ["directive"]: "directive", ["anti-shake"]: "anti-shake", diff --git a/src/lang/modules/zhCN.ts b/src/lang/modules/zhCN.ts index 79cb6a2..ecd9334 100644 --- a/src/lang/modules/zhCN.ts +++ b/src/lang/modules/zhCN.ts @@ -57,6 +57,7 @@ export default { ["icon-selector"]: "图标选择器", ["user-center"]: "用户中心", ["fingerprintjs2"]: "浏览器指纹", + ["barcode"]: "条形码", ["markdown"]: "Markdown", ["directive"]: "自定义指令", ["anti-shake"]: "防抖", diff --git a/src/layout/components/Aside/index copy.vue b/src/layout/components/Aside/index copy.vue new file mode 100644 index 0000000..bb68831 --- /dev/null +++ b/src/layout/components/Aside/index copy.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/src/layout/components/Tabs/index.vue b/src/layout/components/Tabs/index.vue index a8bef06..edc6d00 100644 --- a/src/layout/components/Tabs/index.vue +++ b/src/layout/components/Tabs/index.vue @@ -72,6 +72,7 @@ const onDelete = (key: string) => { routerStore.removeTabsList(key); routerStore.removeRouteName(key); if (tabsList.value.length == 0) return; + if (currentRoute.value.name != key) return; router.push(tabsList.value.at(-1).path); }; diff --git a/src/layout/layout-defaults/index.vue b/src/layout/layout-defaults/index.vue index ef12d91..2be29f2 100644 --- a/src/layout/layout-defaults/index.vue +++ b/src/layout/layout-defaults/index.vue @@ -1,5 +1,5 @@