From a16ecc01590c6f9045e765dd95610700c4971f8c Mon Sep 17 00:00:00 2001 From: jmal Date: Mon, 20 May 2024 18:47:09 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E4=B8=8B,=E8=BF=9B=E5=85=A5=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E5=90=8E=E7=9A=84=E5=8F=B3=E9=94=AE=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ShowFile/ShowFile.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index a0524c0..cfd3b47 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -3289,7 +3289,8 @@ export default { setMenus(row) { this.menus = JSON.parse(JSON.stringify(this.singleMenus)); // 挂载的文件 - if (this.$route.query.folder) { + const owner = localStorage.getItem('mountFileOwner') + if (this.$route.query.folder && owner) { // 根据权限设置菜单 this.setMenusByPermission(row); } else {