From 02a903b92cbba1e3d95e5ade8ad6303fbf7fcd6c Mon Sep 17 00:00:00 2001 From: LuminousWanderer <1664524275@qq.com> Date: Wed, 30 Aug 2023 22:07:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=96=E5=AD=90=E4=B8=8A=E4=BC=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E6=8E=A5=E5=8F=A3=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/notice_forum.js | 4 +- .../posting.vue" | 38 +++++++++++++++---- 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/src/api/notice_forum.js b/src/api/notice_forum.js index 3843cae6..16d0796e 100644 --- a/src/api/notice_forum.js +++ b/src/api/notice_forum.js @@ -83,9 +83,9 @@ export default { }) }, - postcontent(user_id,post_title,post_content) { + postcontent(user_id,post_title,post_content,param) { return axios - .post('/api/postcontent',{user_id,post_title,post_content}) + .post('/api/postcontent',{user_id,post_title,post_content,param}) .then((response) => response.data) .catch(error => { throw new Error('发帖出错:' + error.message); diff --git "a/src/components/\347\224\250\346\210\267\347\225\214\351\235\242/posting.vue" "b/src/components/\347\224\250\346\210\267\347\225\214\351\235\242/posting.vue" index 66db5b7d..3849929a 100644 --- "a/src/components/\347\224\250\346\210\267\347\225\214\351\235\242/posting.vue" +++ "b/src/components/\347\224\250\346\210\267\347\225\214\351\235\242/posting.vue" @@ -20,9 +20,15 @@ placeholder="请输入内容" style="margin-top:-8px" /> - + -