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 } }