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')