Răsfoiți Sursa

fix: 修复上传图片处理逻辑并更新API配置

xyh 5 luni în urmă
părinte
comite
911eddc7d7
3 a modificat fișierele cu 7 adăugiri și 3 ștergeri
  1. 1 1
      .env.production
  2. 5 1
      src/views/technician/technician/index.vue
  3. 1 1
      vue.config.js

+ 1 - 1
.env.production

@@ -7,4 +7,4 @@ ENV = 'production'
 # 若依管理系统/生产环境
 # VUE_APP_BASE_API = '/prod-api'
 VUE_APP_BASE_API = 'https://test.baoxianzhanggui.com/nightFragrance'
-VUE_APP_BASE_API = 'https://city.baoxianzhanggui.com/nightFragrance'
+#VUE_APP_BASE_API = 'https://city.baoxianzhanggui.com/nightFragrance'

+ 5 - 1
src/views/technician/technician/index.vue

@@ -646,7 +646,11 @@ export default {
     },
     // 上传事件
     onUpload(e, k) {
-      this.form[k] = e;
+      if(['cSfzImg','cImgList'].includes(k)){
+        this.form[k] = e.split(',');
+      }else{
+        this.form[k] = e;
+      }
     },
     // 取消按钮
     submitCancel() {

+ 1 - 1
vue.config.js

@@ -34,7 +34,7 @@ module.exports = {
     open: true,
     proxy: {
       '/profile/upload': {
-        target:  process.env.VUE_APP_BASE_API,
+        target:  'https://test.baoxianzhanggui.com/nightFragrance',
         changeOrigin: true,
         pathRewrite:{
           ['^/profile/upload']: '/profile/upload',