diff --git a/src/views/main.vue b/src/views/main.vue index 80f5688a..3f418606 100644 --- a/src/views/main.vue +++ b/src/views/main.vue @@ -123,8 +123,8 @@ export default { mainIndexByValue (e) { // 跳转进来直接打开社区查询关闭其他 this.$store.state.sidebarHide = true - this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => item.name === 'productIframe-shequ-index') - this.$router.push({ name: 'productIframe-shequ-index' }) + // this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => item.name === 'productIframe-shequ-index') + // this.$router.push({ name: 'productIframe-shequ-index' }) window.localStorage.setItem('isGoProgect', e) this.isGoProgect = window.localStorage.getItem('isGoProgect') diff --git a/src/views/pages/login.vue b/src/views/pages/login.vue index eb678ab6..f8936e1d 100644 --- a/src/views/pages/login.vue +++ b/src/views/pages/login.vue @@ -147,8 +147,9 @@ export default { return this.$message.error(res.msg) } Cookies.set('token', res.data.token) - this.$store.state.sidebarHide = true - this.$router.replace({ name: 'productIframe-shequ-index' }) + this.$router.replace({ name: 'home' }) + // this.$store.state.sidebarHide = true + // this.$router.replace({ name: 'productIframe-shequ-index' }) window.localStorage.setItem('isGoProgect', false) // 登陆之后从localStorage获取党委为空则从网络上拉取 this.checkLocakStorage()