centaline-data-driven-v3 0.0.99 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -205,13 +205,12 @@ function load(data) {
|
|
|
205
205
|
watch(
|
|
206
206
|
() => model.value, // 监听的源
|
|
207
207
|
(newValue, oldValue) => {
|
|
208
|
-
|
|
209
|
-
console.log('Old value:', oldValue);
|
|
210
|
-
if (newValue?.file && newValue?.file != oldValue?.file) {
|
|
208
|
+
if (newValue?.file?.raw&& newValue?.file != oldValue?.file) {
|
|
211
209
|
// 处理文件上传
|
|
212
210
|
var options = {
|
|
213
211
|
file: newValue.file.raw
|
|
214
212
|
}
|
|
213
|
+
model.value.file = [];
|
|
215
214
|
SliceUpload(options);
|
|
216
215
|
}
|
|
217
216
|
},
|