From 04f42e5a96bcb6a2a213701f1ee0aac7c40e2c91 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Mon, 8 Jun 2026 06:46:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=8C=96=E5=89=8D=E7=AB=AF=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 4 +++- .../src/features/admin/components/TransferDialog.vue | 6 ------ .../src/features/admin/views/AdminAnnouncementsView.vue | 9 ++------- frontend/src/features/admin/views/AdminAuditLogsView.vue | 5 ----- frontend/src/features/admin/views/AdminChatsView.vue | 4 ++-- frontend/src/features/admin/views/AdminDisputesView.vue | 5 ----- frontend/src/features/admin/views/AdminMgrUsersView.vue | 1 - frontend/src/features/admin/views/AdminUsersView.vue | 1 - .../src/features/admin/views/AdminWalletLedgerView.vue | 5 ----- frontend/src/features/auth/views/MobileLoginView.vue | 2 +- frontend/src/features/auth/views/MobileProfileView.vue | 3 ++- frontend/src/features/auth/views/MobileRegisterView.vue | 2 +- frontend/src/features/chats/views/MessagesView.vue | 2 +- .../src/features/listings/components/HomeFilters.vue | 2 +- .../features/listings/components/HomeZonesAndSort.vue | 2 +- .../composables/__tests__/useHomeFilters.spec.ts | 5 +---- frontend/src/features/listings/views/HomeView.vue | 1 - .../src/features/listings/views/ListingDetailView.vue | 1 - frontend/src/features/listings/views/ListingsView.vue | 3 +-- .../features/listings/views/MobileListingDetailView.vue | 6 ------ .../seller/views/MobileSellerListingCreateView.vue | 1 - .../features/wallet/components/PaymentAccountDialog.vue | 9 --------- frontend/src/features/wallet/views/WithdrawalView.vue | 2 +- 23 files changed, 17 insertions(+), 64 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 3df630a..67455e0 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,9 +9,11 @@ "preview": "vite preview --host 0.0.0.0", "typecheck": "vue-tsc -b --noEmit", "lint": "eslint .", + "lint:strict": "eslint . --max-warnings=0", "lint:fix": "eslint . --fix", "format": "prettier --write .", - "format:check": "prettier --check ." + "format:check": "prettier --check .", + "check": "npm run format:check && npm run lint:strict && npm run typecheck" }, "dependencies": { "@element-plus/icons-vue": "^2.3.1", diff --git a/frontend/src/features/admin/components/TransferDialog.vue b/frontend/src/features/admin/components/TransferDialog.vue index 9cd7272..6d82016 100644 --- a/frontend/src/features/admin/components/TransferDialog.vue +++ b/frontend/src/features/admin/components/TransferDialog.vue @@ -93,12 +93,6 @@ async function handleSubmit() { submitting.value = false } } - -function getStatusTag(count: number) { - if (count === 0) return { text: '空闲', type: 'success' } - if (count <= 3) return { text: '正常', type: '' } - return { text: '繁忙', type: 'warning' } -}