浏览代码

auto commit

gcz 3 年之前
父节点
当前提交
a64dfe65a8
共有 4 个文件被更改,包括 7 次插入6 次删除
  1. 1 1
      .env.production
  2. 2 2
      src/components/home-page/index.vue
  3. 2 2
      src/components/login/index.vue
  4. 2 1
      src/components/video-call/index.vue

+ 1 - 1
.env.production

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

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

@@ -68,11 +68,11 @@ export default {
         .catch(() => {
         .catch(() => {
           const userSig = genTestUserSig(this.UserID).userSig;
           const userSig = genTestUserSig(this.UserID).userSig;
           const userId = this.UserID;
           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("userLoginSuccess");
           this.$store.commit("setLoginUserInfo", {
           this.$store.commit("setLoginUserInfo", {
             userId,
             userId,
-            loginsPortrait,
+            // loginsPortrait,
             userSig,
             userSig,
           });
           });
 
 

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

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