Преглед изворни кода

更新 磅单,运单 上传接口地址

wzh пре 4 година
родитељ
комит
483be6087a
2 измењених фајлова са 4 додато и 2 уклоњено
  1. 2 0
      src/store/index.js
  2. 2 2
      src/views/voyage/voyageDetail.vue

+ 2 - 0
src/store/index.js

@@ -7,6 +7,7 @@ if (
   baseurl = "https://interface.huihenduo.com.cn/hhd-pat-dev/";
 }
 const uploadUrl = `${baseurl}cos/upload`;
+const wayBillUrl = `${baseurl}voyage/uploadVoyageWayBill`;
 
 const store = createStore({
   state: {
@@ -16,6 +17,7 @@ const store = createStore({
     currentMenuItem: "/cargoOwnerManage/cargoOwnerList",
     baseurl,
     uploadUrl,
+    wayBillUrl,
   },
   mutations: {
     changefirstTitle(state, text) {

+ 2 - 2
src/views/voyage/voyageDetail.vue

@@ -456,7 +456,7 @@
         <el-upload
           drag
           multiple
-          action="https://interface.huihenduo.com.cn/hhd-pat/voyage/uploadVoyageWayBill"
+          :action="this.$store.state.wayBillUrl"
           list-type="picture-card"
           :on-preview="handlePictureCardPreview"
           :on-remove="handleRemoveBill"
@@ -479,7 +479,7 @@
         <el-upload
           drag
           multiple
-          action="https://interface.huihenduo.com.cn/hhd-pat/voyage/uploadVoyageWayBill"
+          :action="this.$store.state.wayBillUrl"
           list-type="picture-card"
           :on-preview="handlePictureCardPreview"
           :on-remove="handleRemovePoundBill"