Browse Source

更改企业登录ID

gcz 3 years ago
parent
commit
5a0b4b82bf
2 changed files with 2 additions and 1 deletions
  1. 1 1
      src/components/applys.vue
  2. 1 0
      src/views/Home.vue

+ 1 - 1
src/components/applys.vue

@@ -393,7 +393,7 @@ export default {
       // this.iframeScr = `https://veterhchat.hw.hongweisoft.com/?veteMemberId=${item.veteMemberId}&inviterId=${this.$store.state.vuex_company_id}`
       // this.showChat = true;
       // return;
-      let url = `https://veterhwebchat.hw.hongweisoft.com/#/?veteMemberId=${item.veteMemberId}&inviterId=${this.$store.state.vuex_company_id}&from=company`;
+      let url = `https://veterhwebchat.hw.hongweisoft.com/#/?veteMemberId=${item.veteMemberId}&inviterId=${this.$store.state.vuex_user.userId}&from=company`;
       // console.log("url", url);
       window.open(url, "_blank");
       // console.log("sendvideo", item);

+ 1 - 0
src/views/Home.vue

@@ -267,6 +267,7 @@ export default {
           console.log("getCompanyInfo", res);
           this.$mc.vuex("vuex_name", res.data.userName);
           this.$mc.vuex("vuex_company_id", res.data.id);
+          this.$mc.vuex("vuex_user", res.data);
           this.companyLogo = res.data.logoFileList[0]?.filesUrl;
           this.companyImg = res.data.companyfileList;
         })