From 2f273e6e148c7ccbd889f37e12e3f7424bdd5adc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=A5=89=E6=BA=90?= <1976974459@qq.com> Date: Tue, 25 Jul 2023 15:01:58 +0800 Subject: [PATCH] 2023-07-25 2 --- src/views/common/login.vue | 4 ++-- src/views/main-sidebar.vue | 2 +- src/views/main.vue | 3 +-- src/views/modules/knifemold/tool-info.vue | 1 + 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/common/login.vue b/src/views/common/login.vue index b4a4dd4..c21b5b5 100644 --- a/src/views/common/login.vue +++ b/src/views/common/login.vue @@ -48,7 +48,7 @@ password: '', uuid: '', captcha: '', - // site:'' + site:'' }, siteList:[], dataRule: { @@ -91,7 +91,7 @@ 'username': this.dataForm.userName, 'password': this.dataForm.password, 'uuid': this.dataForm.uuid, - // 'site': this.dataForm.site, + 'site': this.dataForm.site, }) }).then(({data}) => { if (data && data.code === 0) { diff --git a/src/views/main-sidebar.vue b/src/views/main-sidebar.vue index bdb0e4d..ad3f5bd 100644 --- a/src/views/main-sidebar.vue +++ b/src/views/main-sidebar.vue @@ -115,7 +115,7 @@ created () { this.menuList = JSON.parse(sessionStorage.getItem('menuList') || '[]').filter(item => item.menuId != 999) this.favoriteList = JSON.parse(sessionStorage.getItem('menuList') || '[]').filter(item => item.menuId == 999) - this.userFavorites() + // this.userFavorites() this.dynamicMenuRoutes = JSON.parse(sessionStorage.getItem('dynamicMenuRoutes') || '[]') this.routeHandle(this.$route) this.getFunctionButtonList() diff --git a/src/views/main.vue b/src/views/main.vue index 25b0164..90c030d 100644 --- a/src/views/main.vue +++ b/src/views/main.vue @@ -97,8 +97,7 @@ this.userName = data.user.username this.site = data.user.site this.languageDefault = data.user.languageDefault - // this.site = data.user.site - this.site =localStorage.getItem("accessSite") + // this.site =localStorage.getItem("accessSite") this.userDisplay = data.user.userDisplay } }) diff --git a/src/views/modules/knifemold/tool-info.vue b/src/views/modules/knifemold/tool-info.vue index efeb5d1..8c754c9 100644 --- a/src/views/modules/knifemold/tool-info.vue +++ b/src/views/modules/knifemold/tool-info.vue @@ -2059,6 +2059,7 @@ export default { } }, saveAndUpdateToolHeader() { + console.log(this.$store.state.user.site) if (!this.editHeaderData.toolId) { this.$message.warning('工具编号不能为空,请选择') return