浏览代码

Merge branch 'master' of http://git.zthymaoyi.com/gongdecai/wangluohuoyun-htqd

gjy 2 年之前
父节点
当前提交
dadd1264ca
共有 2 个文件被更改,包括 8 次插入3 次删除
  1. 2 2
      src/api/officialWebsiteManagement.js
  2. 6 1
      src/views/cargoOwnerManagement/empowerExamine.vue

+ 2 - 2
src/api/officialWebsiteManagement.js

@@ -1,6 +1,6 @@
 import request from '@/utils/request'
-// const uploadPath = process.env.VUE_APP_BASE_API + '/appendix/admin'
-const uploadPath = 'https://apitest.changyuntong56.com/appendix/api/upload'
+const uploadPath = process.env.VUE_APP_BASE_API + '/appendix/admin'
+// const uploadPath = 'https://apitest.changyuntong56.com/appendix/api/upload'
 export { uploadPath }
 export function getList(data) {
     return request({

+ 6 - 1
src/views/cargoOwnerManagement/empowerExamine.vue

@@ -261,7 +261,7 @@
         <div class="recharge_css">
           <div class="title_css">上传截图 :</div>
           <div class="upLoad">
-            <el-upload class="avatar-uploader" action="https://apitest.changyuntong56.com/appendix/api/upload" :show-file-list="false"
+            <el-upload class="avatar-uploader" :action="uploadPath" :show-file-list="false"
               :on-success="handleAvatarSuccess">
               <img v-if="imageUrl" :src="imageUrl" class="avatar" />
               <i v-else class="el-icon-plus avatar-uploader-icon"></i>
@@ -325,6 +325,10 @@ import {
   theRecharge,
   forbidden
 } from '@/api/cargoOwnerManagement';
+
+ import {
+    uploadPath
+  } from '@/api/officialWebsiteManagement'
 export default {
   components: {
     'el-image-viewer': () =>
@@ -332,6 +336,7 @@ export default {
   },
   data() {
     return {
+      uploadPath,
       billList: [],
       tableData: [],
       //分页