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 @@
点此付款 - 刷新付款状态 + + 刷新付款状态 +
@@ -200,7 +202,11 @@ async function submitRealName() { } let rs try { - rs = await api.v2.verification.realname(submitForm.username, submitForm.name, submitForm.id_card) + rs = await api.v2.verification.realname( + submitForm.username, + submitForm.name, + submitForm.id_card + ) } catch (e) { sendErrorMessage('请求失败: ' + e) } @@ -227,7 +233,11 @@ async function submitRealPerson() { } let rs try { - rs = await api.v2.verification.realperson.root.post(submitForm.username, submitForm.name, submitForm.id_card) + rs = await api.v2.verification.realperson.root.post( + submitForm.username, + submitForm.name, + submitForm.id_card + ) } catch (e) { sendErrorMessage('请求失败: ' + e) } @@ -323,9 +333,7 @@ async function checkVerificationStatus() { async function realPersonPay() { let rs try { - rs = await api.v2.verification.realperson.pay( - userData.getters.get_username - ) + rs = await api.v2.verification.realperson.pay(userData.getters.get_username) } catch (e) { sendErrorMessage('请求失败: ' + e) } diff --git a/src/views/proxies/ConfigView.vue b/src/views/proxies/ConfigView.vue index 7c80820..2bed4f6 100644 --- a/src/views/proxies/ConfigView.vue +++ b/src/views/proxies/ConfigView.vue @@ -114,11 +114,7 @@ onMounted(async () => { async function updateValue(value) { let rs try { - rs = await api.v2.proxy.config( - userData.getters.get_username, - null, - value - ) + rs = await api.v2.proxy.config(userData.getters.get_username, null, value) } catch (e) { logger.error(e) sendErrorMessage('请求获取隧道配置文件失败: ' + e)