diff --git a/src/api/v2/donate/root.api.ts b/src/api/v2/donate/root.api.ts index 0971457..38cd948 100644 --- a/src/api/v2/donate/root.api.ts +++ b/src/api/v2/donate/root.api.ts @@ -5,10 +5,7 @@ import { post } from '@/utils/request' /** * 创建赞助订单 */ -const postDonate = async ( - username: string, - money: string -) => { +const postDonate = async (username: string, money: string) => { const rs = post(`${base.api_v2_url}/donate`, { username: username, money: money diff --git a/src/api/v2/verification/root.api.ts b/src/api/v2/verification/root.api.ts index 00617c6..9ff5bf9 100644 --- a/src/api/v2/verification/root.api.ts +++ b/src/api/v2/verification/root.api.ts @@ -3,14 +3,14 @@ import base from '@/api/base' import { get } from '@/utils/request' const getVerification = async (username: string) => { - const rs = get(`${base.api_v2_url}/verification`, { - username: username - }) - return base.buildResponse(await rs) + const rs = get(`${base.api_v2_url}/verification`, { + username: username + }) + return base.buildResponse(await rs) } const verification = { - get: getVerification, + get: getVerification } -export default verification \ No newline at end of file +export default verification diff --git a/src/router/index.js b/src/router/index.js index fc291f9..ec6aa25 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -80,7 +80,7 @@ const routes = [ } }, component: () => import('@views/auth/ResetPasswordView.vue') - }, + } ] }, { diff --git a/src/views/DonateView.vue b/src/views/DonateView.vue index cd7b39a..afb46bf 100644 --- a/src/views/DonateView.vue +++ b/src/views/DonateView.vue @@ -265,10 +265,7 @@ async function doDonate() { } let rs try { - rs = await api.v2.donate.root.post( - userData.getters.get_username, - amount.value - ) + rs = await api.v2.donate.root.post(userData.getters.get_username, amount.value) } catch (e) { sendErrorMessage('请求列表失败: ' + e) } diff --git a/src/views/VerificationView.vue b/src/views/VerificationView.vue index fdb88e0..fa9d305 100644 --- a/src/views/VerificationView.vue +++ b/src/views/VerificationView.vue @@ -123,7 +123,9 @@