diff --git a/src/views/modules/news/banner-add-or-update.vue b/src/views/modules/news/banner-add-or-update.vue index c57e8e1..626ee38 100644 --- a/src/views/modules/news/banner-add-or-update.vue +++ b/src/views/modules/news/banner-add-or-update.vue @@ -104,7 +104,7 @@ + :src="dataForm.videoUrl" controls="controls" height="178px" width="378px"> @@ -157,7 +157,8 @@ export default { options: [], uploadUrl: '', positionList: [], - loading: false + loading: false, + videoLoading: false } }, computed: { @@ -256,20 +257,20 @@ export default { }, handleVideoSuccess (res, file) { this.dataForm.videoUrl = res.data.url - this.loading = false + this.videoLoading = false }, beforeAvatarUpload (file) { this.loading = true }, beforeVideoUpload (file) { - console.log(file) if (file.size > 52428800) { return this.$message.error('文件大小不能超过50M') } - this.loading = true + this.videoLoading = true }, handelError () { this.loading = false + this.videoLoading = false }, getListFromDict (dictType) { this.$http.get(`/sys/dict/listSimple/` + dictType).then(({ data: res }) => {