From 91a2cda277a96abcee7c3e3d09bb66ce5063b7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=B2=AB=E8=8A=B1=E7=81=ABzzz=F0=9F=8C=99?= Date: Mon, 7 Oct 2024 01:50:56 +0800 Subject: [PATCH] =?UTF-8?q?[*]=20=E4=BF=AE=E5=A4=8D=E7=95=99=E8=A8=80?= =?UTF-8?q?=E5=92=8C=E5=B7=B2=E7=99=BB=E5=BD=95=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/v2/donate/say/root.api.ts | 2 +- src/components/nav/MainNav.vue | 2 +- src/views/DonateView.vue | 9 ++------- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/api/v2/donate/say/root.api.ts b/src/api/v2/donate/say/root.api.ts index 0e61d10..bd3c5f3 100644 --- a/src/api/v2/donate/say/root.api.ts +++ b/src/api/v2/donate/say/root.api.ts @@ -6,7 +6,7 @@ import { post } from '@/utils/request' * 列出赞助列表 */ const postSay = async (username: number, trade_no: string, message: string) => { - const rs = post(`${base.api_v2_url}/donate/list`, { + const rs = post(`${base.api_v2_url}/donate/say`, { username: username, trade_no: trade_no, message: message diff --git a/src/components/nav/MainNav.vue b/src/components/nav/MainNav.vue index 58388f6..4e3c6ad 100644 --- a/src/components/nav/MainNav.vue +++ b/src/components/nav/MainNav.vue @@ -141,7 +141,7 @@ function getStyle() { } } -if (route.path === '/') router.push('/dashboard') +if (location.pathname === '/') router.push('/dashboard')