소스 검색

no message

FengChaoYu 3 년 전
부모
커밋
36c69dc581
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/layout/components/Navbar.vue

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

@@ -173,6 +173,7 @@ export default {
             enginPassword: this.engineForm.password
           }
           bindEngineAccount(params).then(res => {
+            console.log('-----------', res)
             if (res.code === 200) {
               this.$successMsg("绑定成功,正在打开工程机系统")
               this.$store.dispatch('user/getInfo').then(() => {
@@ -180,6 +181,8 @@ export default {
                 this.userInfo.enginPassword = this.engineForm.password
                 this.$refs.engineSubmit.click()
               })
+            } else {
+              this.$errorMsg(res.message)
             }
           })
         }