Browse Source

优化

release/hlpt
zhaoyongnian 3 years ago
parent
commit
fdd68e32bf
  1. 4
      src/views/main.vue
  2. 5
      src/views/pages/login.vue

4
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')

5
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()

Loading…
Cancel
Save