From 64274427a9357476ed01e7be167bed7201559446 Mon Sep 17 00:00:00 2001 From: baiqi Date: Fri, 21 Jul 2023 15:28:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B8=83=E5=B1=80=E8=B0=83=E6=95=B4&?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E8=B7=AF=E7=94=B1=E4=B8=8D=E7=BC=93=E5=AD=98?= =?UTF-8?q?&=E5=85=AC=E5=85=B1=E9=9D=99=E6=80=81=E6=A8=A1=E6=9D=BF&husky?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=A0=A1=E9=AA=8C=20TS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.husky/pre-commit | 2 +- frontend/README.md | 2 +- frontend/public/templates/user_import.xlsx | Bin 0 -> 8876 bytes frontend/src/layout/default-layout.vue | 5 +++-- frontend/src/router/routes/types.ts | 2 +- frontend/src/router/typings.d.ts | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 frontend/public/templates/user_import.xlsx diff --git a/frontend/.husky/pre-commit b/frontend/.husky/pre-commit index 36eb360621..ab0749e263 100755 --- a/frontend/.husky/pre-commit +++ b/frontend/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -cd frontend && npm run lint-staged +cd frontend && npm run type:check && npm run lint-staged diff --git a/frontend/README.md b/frontend/README.md index ecc6ce1dfd..4e8ebe9ad4 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -360,7 +360,7 @@ export default function usePermission() { - + diff --git a/frontend/public/templates/user_import.xlsx b/frontend/public/templates/user_import.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..e7926406c382a75041c1a286620c1d2e666f7066 GIT binary patch literal 8876 zcma)iWmKHY(lzex?ry;e50nADz^x1=%YpT4zBtK>#Zj+*?{!)>ZQP1s=`EjF<2Z^X&W`} z7LBZ!7#dg_Sz0SAl0t15C#LfYx8*YMS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3d4|ELT}p8cz~huaneF?y>AO3}$5 zQ>FT68lZ9>`3t3H#EEZ@voKSGlsny^Ikdq)j~!lHGHXJ&2NV-dmrBy|*~NSYrT=sc zN-!kjT}?K|JnV+zz+~1A@ND5_YLQ-2O4CB*B;e~%VUVHAQa|-vr3esGi*fs^K}KXxGS7L*Gq zZc~k!J)I~@5yXR+MpYTDEfq}mry!+56v%ooktSYtxMa$!y*63_ORRg#hK!e@xgm4e zZ)YtEah65)PGV1{2Std+8YF>ZD(n2VLBTM7URS@A=I1-} zxH%x8AS92U7X<&hProMkcTwr7qP70xaro=R{2BCl33~GR6*TZ~pPxtOe+7Fw zlfTAOu&414G5ybY&*k(d<6rTp|LOLB;`(!lp3B9*y@MZ9`tP8BiO0{~p9`M9-N7DJ zy5H`9%b)-2rJr=YU*qYebsojJ$9nU>9R5V91pgle>iI&SSF)!#zfc1~UDERzp0j(uXOMU#`=0u&zq!8u|98iP{^|Ocvh-($JlB?fN96mb+i#`m z`I4V^GruQ*f0U~pm;6uI{@0?PgxO!?X@|Xk?eHHm?Vl@uF4R8x{@S&o|M2}S+bT#y U{yeOxkN*Gx{b(0U^yK&d0B<*4>;M1& literal 0 HcmV?d00001 diff --git a/frontend/src/layout/default-layout.vue b/frontend/src/layout/default-layout.vue index 7123e41334..992ae6f6d2 100644 --- a/frontend/src/layout/default-layout.vue +++ b/frontend/src/layout/default-layout.vue @@ -34,14 +34,15 @@ - + @@ -170,7 +171,7 @@ .arco-layout-content { padding: 16px 16px 16px 0; min-width: 1000px; - height: calc(100vh - 72px); + min-height: 500px; } } diff --git a/frontend/src/router/routes/types.ts b/frontend/src/router/routes/types.ts index f924e3b6b6..11eebba356 100644 --- a/frontend/src/router/routes/types.ts +++ b/frontend/src/router/routes/types.ts @@ -17,7 +17,7 @@ export interface RouteMeta { activeMenu?: string; // 激活状态 order?: number; // 排序权重 noAffix?: boolean; // tab展示设置,设置为true则不在tab列表展示激活页面的tab - ignoreCache?: boolean; // 缓存设置,true则不缓存 + isCache?: boolean; // 缓存设置,true则不缓存 isTopMenu?: boolean; // 是否为顶部菜单 breadcrumbs?: BreadcrumbItem[]; // 面包屑 } diff --git a/frontend/src/router/typings.d.ts b/frontend/src/router/typings.d.ts index 8330852be4..405643517e 100644 --- a/frontend/src/router/typings.d.ts +++ b/frontend/src/router/typings.d.ts @@ -11,7 +11,7 @@ declare module 'vue-router' { activeMenu?: string; // 激活状态 order?: number; // 排序权重 noAffix?: boolean; // tab展示设置,设置为true则不在tab列表展示激活页面的tab - ignoreCache?: boolean; // 缓存设置,true则不缓存 + isCache?: boolean; // 缓存设置,true则不缓存 isTopMenu?: boolean; // 是否为顶部菜单 breadcrumbs?: BreadcrumbItem[]; // 面包屑 }