From 894dd034da2c3b466f0ee80db36342d4b0d01ebc Mon Sep 17 00:00:00 2001 From: 明梦爽 <2972214568@qq.com> Date: 星期三, 26 一月 2022 23:18:03 +0800 Subject: [PATCH] 管理权限整好 --- src/components/Administrator/EditLunBo.vue | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/Administrator/EditLunBo.vue b/src/components/Administrator/EditLunBo.vue index a19f534..47900d7 100644 --- a/src/components/Administrator/EditLunBo.vue +++ b/src/components/Administrator/EditLunBo.vue @@ -6,7 +6,8 @@ <el-upload class="upload-demo" drag - action="https://jsonplaceholder.typicode.com/posts/" + action="http://localhost:8080//news/add" + :on-remove="handleRemove" multiple> <i class="el-icon-upload"></i> <div class="el-upload__text">灏嗘枃浠舵嫋鍒版澶勶紝鎴�<em>鐐瑰嚮涓婁紶</em></div> @@ -50,12 +51,16 @@ this.newsCategoryId = this.$route.query.id }, methods:{ + handleRemove(file,fileList){ + console.log(file,fileList); + }, submit(){ const data = { newsCategoryId:this.newsCategoryId, content:this.content, title:this.title, - releaseTime:this.releaseTime + releaseTime:this.releaseTime, + pictureFile:this.file, } add(data).then(res => { console.log(res); -- Gitblit v1.8.0