wangJJ 4 년 전
부모
커밋
137ba2faee
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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()