FengChaoYu %!s(int64=3) %!d(string=hai) anos
pai
achega
cf602004c5
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/layout/components/Navbar.vue

+ 3 - 0
src/layout/components/Navbar.vue

@@ -103,6 +103,8 @@ export default {
     this.timer = setInterval(function () {
       that.initNotice()
     }, 3000)
+  },
+  created() {
     this.userInfo = JSON.parse(localStorage.getItem("supply_user"))
   },
   beforeDestroy() {
@@ -177,6 +179,7 @@ export default {
             if (res.code === 200) {
               this.$successMsg("绑定成功,正在打开工程机系统")
               this.$store.dispatch('user/getInfo').then(() => {
+                this.userInfo.bindEngin = true
                 this.userInfo.enginUserName = this.engineForm.account
                 this.userInfo.enginPassword = this.engineForm.password
                 this.$refs.engineSubmit.click()