소스 검색

bug:服务对象无法修改名称

xuyunhui 1 년 전
부모
커밋
73b4e4c5fe
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      myPages/serviceObjectInfo/index.vue

+ 3 - 2
myPages/serviceObjectInfo/index.vue

@@ -175,8 +175,9 @@ export default {
       }
       this.requestStatus = true
       this.userInfo.auth = true;
-      this.userInfo.authServiceIds = this.userInfo.serviceProjectId.join()
-      this.userInfo.serviceProjectId = this.userInfo.serviceProjectId
+      if(this.userInfo.serviceProjectId){
+        this.userInfo.authServiceIds = this.userInfo.serviceProjectId.join()
+      }
       if (this.userInfo.opType == '1') { // 绑定
         // 保存数据
         this.$api.bindServiceObject(this.userInfo).then((res) => {