From 4ae629ab65fae2a27ad9184bf9d4c438d29d41cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=9D=E5=85=88=E7=91=9E?= <1490493387@qq.com> Date: Fri, 11 Mar 2022 00:07:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20pinia=E6=95=B4=E5=90=88=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 6 +- src/components/LangSelect/index.vue | 7 +- src/components/RightPanel/index.vue | 7 +- src/components/SizeSelect/index.vue | 40 +-- src/components/ThemePicker/index.vue | 6 +- src/directive/permission/index.ts | 19 +- src/layout/components/AppMain.vue | 15 +- src/layout/components/Navbar.vue | 103 ++++--- src/layout/components/Settings/index.vue | 92 +++--- src/layout/components/Sidebar/Link.vue | 11 +- src/layout/components/Sidebar/SidebarItem.vue | 2 +- src/layout/components/Sidebar/index.vue | 16 +- src/layout/components/TagsView/ScrollPane.vue | 112 +++++--- src/layout/components/TagsView/index.vue | 251 +++++++++------- src/layout/index.vue | 65 +++-- src/main.ts | 4 +- src/permission.ts | 26 +- src/store/index.ts | 20 +- src/store/modules/app.ts | 7 +- src/store/modules/permission.ts | 9 +- src/store/modules/settings.ts | 6 +- src/store/modules/tagsView.ts | 13 +- src/store/modules/user.ts | 18 +- src/utils/request.ts | 19 +- src/views/dashboard/index.vue | 95 ++++--- src/views/login/index.vue | 269 ++++++++++-------- 26 files changed, 675 insertions(+), 563 deletions(-) diff --git a/src/App.vue b/src/App.vue index 95686194..44275fdf 100644 --- a/src/App.vue +++ b/src/App.vue @@ -7,17 +7,19 @@ diff --git a/src/views/login/index.vue b/src/views/login/index.vue index 23f6d00b..8fe425e6 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,145 +1,160 @@ - {{ $t('login.title') }} - + {{ $t("login.title") }} + - + - - - + + + - - + + - - - + + + - + - {{ $t('login.login') }} + {{ $t("login.login") }} - {{ $t('login.username') }}: admin - {{ $t('login.password') }}: 123456 + {{ $t("login.username") }}: admin + {{ $t("login.password") }}: 123456 - - {{ $t('login.copyright') }} - {{ $t('login.icp') }} + + {{ $t("login.copyright") }} + {{ $t("login.icp") }}
{{ $t('login.copyright') }}
{{ $t('login.icp') }}
{{ $t("login.copyright") }}
{{ $t("login.icp") }}