From c4bb6b3ff60d48b877c194fbb24eb65c40d29d71 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: Fri, 6 Sep 2024 12:30:58 +0800 Subject: [PATCH] fix prettier --- package.json | 4 ++-- src/api/v1/Donate/SetMessage.ts | 22 ++++++++-------------- 2 files changed, 10 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 8a98423..2d2d8f1 100644 --- a/package.json +++ b/package.json @@ -34,11 +34,11 @@ "vuex": "^4.1.0" }, "devDependencies": { - "@types/qs": "^6.9.15", "@tsconfig/node20": "^20.1.4", - "@vue/tsconfig": "^0.5.1", + "@types/qs": "^6.9.15", "@vicons/fa": "^0.12.0", "@vitejs/plugin-vue": "^5.1.3", + "@vue/tsconfig": "^0.5.1", "autoprefixer": "^10.4.20", "cssnano": "^7.0.6", "git-revision-vite-plugin": "^0.0.11", diff --git a/src/api/v1/Donate/SetMessage.ts b/src/api/v1/Donate/SetMessage.ts index da99de9..f9a3cdb 100644 --- a/src/api/v1/Donate/SetMessage.ts +++ b/src/api/v1/Donate/SetMessage.ts @@ -5,20 +5,14 @@ import { get } from '@/utils/request' /** * 列出赞助列表 */ -const SetMessage = async ( - username: string, - token: string, - trade_no: string, - message: string - -) => { - const rs = get(`${base.api_v1_url}/Donate/SetMessage`, { - username: username, - token: token, - trade_no: trade_no, - message: message - }) - return base.buildResponse(await rs, false) +const SetMessage = async (username: string, token: string, trade_no: string, message: string) => { + const rs = get(`${base.api_v1_url}/Donate/SetMessage`, { + username: username, + token: token, + trade_no: trade_no, + message: message + }) + return base.buildResponse(await rs, false) } export default SetMessage