linwenxin před 5 měsíci
rodič
revize
ba3fcbfac5
2 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 1 1
      src/common/http/index.js
  2. 2 2
      src/common/utils/util.js

+ 1 - 1
src/common/http/index.js

@@ -254,7 +254,7 @@ export const axios = function (obj = {}) {
         const res = replaceStringInObject(
           ress.data,
           'https://zfire-jsm-h.oss-cn-shenzhen.aliyuncs.com/',
-          'https://fw.greeapps.com/zfdminiapp/common/img/get?key='
+          process.env.VUE_APP_BASE_URL + process.env.VUE_APP_BASE_API + '/common/img/get?key='
         )
         if (whiteCodes.indexOf(res.code) < 0) {
           if (res.code === 1001) {

+ 2 - 2
src/common/utils/util.js

@@ -411,7 +411,7 @@ export const uploadImgFull = async function (file) {
           replaceStringInObject(
             res.data.data,
             'https://zfire-jsm-h.oss-cn-shenzhen.aliyuncs.com/',
-            'https://fw.greeapps.com/zfdminiapp/common/img/get?key='
+            process.env.VUE_APP_BASE_URL + process.env.VUE_APP_BASE_API + '/common/img/get?key='
           )
         )
       })
@@ -432,7 +432,7 @@ export const uploadImgFull = async function (file) {
           replaceStringInObject(
             JSON.parse(res.data).data,
             'https://zfire-jsm-h.oss-cn-shenzhen.aliyuncs.com/',
-            'https://fw.greeapps.com/zfdminiapp/common/img/get?key='
+            process.env.VUE_APP_BASE_URL + process.env.VUE_APP_BASE_API + '/common/img/get?key='
           )
         )
       },