From 7e0af28836a91ed51554611ede62104de06a2a1c Mon Sep 17 00:00:00 2001 From: smail Date: Sun, 18 Oct 2026 02:06:45 +0800 Subject: [PATCH] =?UTF-8?q?fix(fe):=20=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AF?= =?UTF-8?q?ESLint=E6=A0=A1=E9=AA=8C=E6=8A=A5=E9=94=99=E5=B9=B6=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.eslintrc.cjs | 3 +++ .../src/views/components/SecuritySettings/SecuritySettings.js | 2 +- .../views/components/SystemNotification/SystemNotification.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/.eslintrc.cjs b/frontend/.eslintrc.cjs index 9550a9d6..f48a4865 100644 --- a/frontend/.eslintrc.cjs +++ b/frontend/.eslintrc.cjs @@ -5,6 +5,9 @@ module.exports = { 'plugin:vue/vue3-essential', 'eslint:recommended' ], + rules: { + 'no-control-regex': 'off' + }, parserOptions: { ecmaVersion: 'latest' }, diff --git a/frontend/src/views/components/SecuritySettings/SecuritySettings.js b/frontend/src/views/components/SecuritySettings/SecuritySettings.js index d56b4901..4a63ae47 100644 --- a/frontend/src/views/components/SecuritySettings/SecuritySettings.js +++ b/frontend/src/views/components/SecuritySettings/SecuritySettings.js @@ -337,7 +337,7 @@ export function usePage() { notify('外部安全邮箱绑定成功', 'success') } - const rebindExternalEmail = (item) => { + const rebindExternalEmail = () => { openExternalEmailDialog() } diff --git a/frontend/src/views/components/SystemNotification/SystemNotification.js b/frontend/src/views/components/SystemNotification/SystemNotification.js index f43fb2da..13a6b14c 100644 --- a/frontend/src/views/components/SystemNotification/SystemNotification.js +++ b/frontend/src/views/components/SystemNotification/SystemNotification.js @@ -267,7 +267,7 @@ export function usePage(props = {}) { manager, loading, submitting, error, status, accounts, page, total, form, secret, secretAccount, secretVisible, seconds, canManage, stateText, dirty, canReveal, verifyVisible, verifyPassword, openVerify, verifyAndReveal, clearVerification, - loadAccounts, selectAccount: openManage, openManage, closeManage, revealAccount, refresh, save, rotate, clearSecret, copySecret, beforeLeave, + loadAccounts, selectAccount, openManage, closeManage, revealAccount, refresh, save, rotate, clearSecret, copySecret, beforeLeave, manageVisible } }