Browse Source

auto commit

gcz 3 years ago
parent
commit
a64dfe65a8

+ 1 - 1
.env.production

@@ -2,4 +2,4 @@
 NODE_ENV = production
 
 # 生产环境
-VUE_APP_BASE_API = 'http://172.16.90.64:7200/company/'
+VUE_APP_BASE_API = 'https://wx.hw.hongweisoft.com/veterans/company/'

+ 2 - 2
src/components/home-page/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="home-page-container">
     <div class="home-page-header">
-      <img class="portrait" :src="loginUserInfo.loginsPortrait" alt="" />
+      <img class="portrait" :src="loginUserInfo.loginsPortrait||defaultAvatar" alt="" />
       <!-- <img
         class="portrait"
         :src="
@@ -46,7 +46,7 @@ export default {
   data() {
     return {
       enableEditName: true,
-      d: require("../../../static/images/avatar15.png"),
+      defaultAvatar: require("../../../static/images/avatar15.png"),
     };
   },
   watch: {

+ 2 - 2
src/components/login/index.vue

@@ -68,11 +68,11 @@ export default {
         .catch(() => {
           const userSig = genTestUserSig(this.UserID).userSig;
           const userId = this.UserID;
-          const loginsPortrait = "../../../static/images/avatar15.png";
+          const loginsPortrait = `${location.origin}/#/static/images/avatar15.png`;
           this.$store.commit("userLoginSuccess");
           this.$store.commit("setLoginUserInfo", {
             userId,
-            loginsPortrait,
+            // loginsPortrait,
             userSig,
           });
 

+ 2 - 1
src/components/video-call/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="video-call-section">
     <div class="video-call-section-header">
-      <img class="portrait" :src="loginUserInfo.loginsPortrait" alt="" />
+      <img class="portrait" :src="loginUserInfo.loginsPortrait||defaultAvatar" alt="" />
       {{ loginUserInfo && (loginUserInfo.name || loginUserInfo.userId) }}
       欢迎您!
     </div>
@@ -90,6 +90,7 @@ export default {
       userId2Name: {},
       callFlag: false,
       cancelFlag: false,
+      defaultAvatar: require("../../../static/images/avatar15.png"),
     };
   },
   mounted() {