From 59ad7ba6452b2028fd7faca000c626a148256620 Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期二, 01 九月 2020 23:29:50 +0800
Subject: [PATCH] fix: do not allow empty data to be saved. for area manager
---
src/components/subComponents/FileUpload/index.vue | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/src/components/subComponents/FileUpload/index.vue b/src/components/subComponents/FileUpload/index.vue
index 97c4562..685fd8e 100644
--- a/src/components/subComponents/FileUpload/index.vue
+++ b/src/components/subComponents/FileUpload/index.vue
@@ -149,7 +149,16 @@
},
computeMD5Success(md5, file) {
// 灏嗚嚜瀹氫箟鍙傛暟鐩存帴鍔犺浇uploader瀹炰緥鐨刼pts涓�
- if (this.$route.path.indexOf("VideoManage") >= 0) {
+ // if (this.$route.path.indexOf("VideoManage") >= 0) {
+ // Object.assign(this.uploader.opts, {
+ // query: {
+ // stackId: this.DataStackPool.selectedDir.id
+ // // ...this.params,
+ // }
+ // })
+ // }
+ //灏嗚嚜瀹氫箟鍙傛暟鐩存帴鍔犺浇uploader瀹炰緥鐨刼pts涓�
+ if (location.href.indexOf("dataStack") >= 0) {
Object.assign(this.uploader.opts, {
query: {
stackId: this.DataStackPool.selectedDir.id
--
Gitblit v1.8.0