From 08e0f4f66d2e39a19b91e8e2fe1bcad75569d4b8 Mon Sep 17 00:00:00 2001 From: 明梦爽 <2972214568@qq.com> Date: 星期三, 26 一月 2022 23:24:08 +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