@@ -119,7 +120,8 @@
imagesValue: [],
photoViewerImg: null,
photoViewerVisible: false,
- curIndex: 0
+ curIndex: 0,
+ postHeaders: {}
}
},
methods: {
@@ -160,6 +162,7 @@
});
},
handleBeforeUpload() {
+ this.postHeaders.Authorization = OperatorUtils.getToken();
const check = this.uploadList.length < this.max;
if (!check) {
this.$Message.warning('最多只能上传 ' + this.max + ' 张图片。');
diff --git a/src/pages/example/FormDynamicPage.vue b/src/pages/example/FormDynamicPage.vue
index 83c0e33..c6bd251 100644
--- a/src/pages/example/FormDynamicPage.vue
+++ b/src/pages/example/FormDynamicPage.vue
@@ -6,8 +6,6 @@
-
-