From bb89c5059c3a5db97c8ddccc7a7bd82b44785ffd Mon Sep 17 00:00:00 2001 From: vben Date: Thu, 12 Aug 2021 23:54:12 +0800 Subject: [PATCH] refactor(sys): change to setup syntax --- .eslintrc.js | 2 +- src/App.vue | 17 +-- src/components/Button/src/BasicButton.vue | 4 +- src/views/sys/about/index.vue | 149 +++++++++----------- src/views/sys/error-log/DetailModal.vue | 40 ++---- src/views/sys/error-log/index.vue | 121 +++++++--------- src/views/sys/exception/Exception.vue | 5 - src/views/sys/iframe/index.vue | 88 +++++------- src/views/sys/lock/LockPage.vue | 103 ++++++-------- src/views/sys/lock/index.vue | 17 +-- src/views/sys/login/ForgetPasswordForm.vue | 65 +++------ src/views/sys/login/Login.vue | 45 ++---- src/views/sys/login/LoginForm.vue | 140 +++++++----------- src/views/sys/login/LoginFormTitle.vue | 36 ++--- src/views/sys/login/MobileForm.vue | 67 +++------ src/views/sys/login/QrCodeForm.vue | 29 +--- src/views/sys/login/RegisterForm.vue | 79 ++++------- src/views/sys/login/SessionTimeoutLogin.vue | 54 +++---- src/views/sys/redirect/index.vue | 25 ++-- 19 files changed, 402 insertions(+), 684 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index f2dbfa16..5fcac9eb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -25,6 +25,7 @@ module.exports = defineConfig({ 'plugin:jest/recommended', ], rules: { + 'vue/script-setup-uses-vars': 'error', '@typescript-eslint/ban-ts-ignore': 'off', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/no-explicit-any': 'off', @@ -61,7 +62,6 @@ module.exports = defineConfig({ 'vue/singleline-html-element-content-newline': 'off', 'vue/attribute-hyphenation': 'off', 'vue/require-default-prop': 'off', - 'vue/script-setup-uses-vars': 'off', 'vue/html-self-closing': [ 'error', { diff --git a/src/App.vue b/src/App.vue index ad629b97..9084a8f4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,23 +6,14 @@ - diff --git a/src/components/Button/src/BasicButton.vue b/src/components/Button/src/BasicButton.vue index 3b6fb52f..5a5039fe 100644 --- a/src/components/Button/src/BasicButton.vue +++ b/src/components/Button/src/BasicButton.vue @@ -1,8 +1,8 @@ - diff --git a/src/views/sys/error-log/index.vue b/src/views/sys/error-log/index.vue index 86b28828..828968d5 100644 --- a/src/views/sys/error-log/index.vue +++ b/src/views/sys/error-log/index.vue @@ -27,91 +27,66 @@ - diff --git a/src/views/sys/exception/Exception.vue b/src/views/sys/exception/Exception.vue index dab9c576..6e56f086 100644 --- a/src/views/sys/exception/Exception.vue +++ b/src/views/sys/exception/Exception.vue @@ -1,19 +1,14 @@