From b89b1894fd914e1d9afc85d2b0839855c1e419d5 Mon Sep 17 00:00:00 2001 From: tk Date: Sat, 12 Oct 2024 16:48:40 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B1=BB=20=20=E5=9E=8B=E3=80=91?= =?UTF-8?q?=EF=BC=9Afeat=20=E5=90=91=E6=95=B0=E6=8D=AE=E5=BA=93=20?= =?UTF-8?q?=E5=BD=95=E5=85=A5=20=E6=97=A5=E5=BF=97=20=E3=80=90=E5=8E=9F=20?= =?UTF-8?q?=20=E5=9B=A0=E3=80=91=EF=BC=9A=20=E3=80=90=E8=BF=87=20=20?= =?UTF-8?q?=E7=A8=8B=E3=80=91=EF=BC=9A=20=E3=80=90=E5=BD=B1=20=20=E5=93=8D?= =?UTF-8?q?=E3=80=91=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/api/table.js | 11 +++++++++++ src/views/layout/components/BlogBox.vue | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/utils/api/table.js b/src/utils/api/table.js index 1b9b428..e3e9aae 100644 --- a/src/utils/api/table.js +++ b/src/utils/api/table.js @@ -132,3 +132,14 @@ export async function refund (orderSn, shopId, refundPrice, refundType) { } return res } +/** + * @abstract 录入日志 + * @param {*} log 日志内容 + */ +export async function addLog (log) { + // 构建请求参数 + const params = new URLSearchParams() + params.append('log', log) + const res = await api.post('addLog', params) + return res +} diff --git a/src/views/layout/components/BlogBox.vue b/src/views/layout/components/BlogBox.vue index e182f71..a1e164b 100644 --- a/src/views/layout/components/BlogBox.vue +++ b/src/views/layout/components/BlogBox.vue @@ -29,6 +29,7 @@