wangJJ 4 years ago
parent
commit
137ba2faee
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/pages/DetailPage/NewAgencyDetail.vue

+ 2 - 1
src/pages/DetailPage/NewAgencyDetail.vue

@@ -96,6 +96,7 @@
       init() {
         this.userId = this.$route.query.id
         this.type = this.$route.query.type
+        this.setUserInfo()
         this.setServiceTypes()
         this.setResourceTypes()
         this.getAuthInfo()
@@ -106,7 +107,7 @@
       //加载数据
       getAuthInfo() {
         this.showLoading()
-        getAgencyAuthInfoCommon(this.userId, this.getAuthInfoSuccess, this.getAuthInfoFail)
+        getAgencyAuthInfoCommon(this.user.userVO.id, this.getAuthInfoSuccess, this.getAuthInfoFail)
       },
       getAuthInfoSuccess(res) {
         this.hideLoading()