From fba6d237c8542f8df9d214141f074c93584ab9e5 Mon Sep 17 00:00:00 2001
From: hanbaoshan <hanbaoshan@aiotlink.com>
Date: 星期五, 14 八月 2020 15:13:31 +0800
Subject: [PATCH] 数据栈上传
---
vue.config.js | 7 +++++++
src/components/subComponents/FileUpload/index.vue | 9 +++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/components/subComponents/FileUpload/index.vue b/src/components/subComponents/FileUpload/index.vue
index b5ff901..685fd8e 100644
--- a/src/components/subComponents/FileUpload/index.vue
+++ b/src/components/subComponents/FileUpload/index.vue
@@ -157,6 +157,15 @@
// }
// })
// }
+ //灏嗚嚜瀹氫箟鍙傛暟鐩存帴鍔犺浇uploader瀹炰緥鐨刼pts涓�
+ if (location.href.indexOf("dataStack") >= 0) {
+ Object.assign(this.uploader.opts, {
+ query: {
+ stackId: this.DataStackPool.selectedDir.id
+ // ...this.params,
+ }
+ })
+ }
file.uniqueIdentifier = md5;
file.resume();
this.statusText.paused = "鏆傚仠涓�";
diff --git a/vue.config.js b/vue.config.js
index db0f78b..1d5f2b6 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -47,6 +47,13 @@
target: 'http://192.168.20.10:7003',
// ws: true,
changeOrigin: true,
+ },
+ "/api-f": {
+ //target: "http://bsic.asuscomm.com:7003", // 澶栫綉鏄犲皠鍦板潃
+ // target: "http://222.128.87.51:8000", // 鐩爣浠g悊鎺ュ彛鍦板潃
+ target: 'http://192.168.20.10:8011',
+ // secure: false,
+ changeOrigin: true
},
"/api": {
//target: "http://bsic.asuscomm.com:7003", // 澶栫綉鏄犲皠鍦板潃
--
Gitblit v1.8.0