From 351511a2dbfdaca0e943d4b39e342bee6607635e Mon Sep 17 00:00:00 2001 From: chen <1443977802@qq.com> Date: Tue, 19 Nov 2024 23:19:19 +0800 Subject: [PATCH] =?UTF-8?q?feat(/pages/common):=E5=AE=8C=E6=88=90=E7=99=BB?= =?UTF-8?q?=E9=99=86=E9=A1=B5=E6=96=87=E6=A1=88=E3=80=81=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9=E3=80=81=E7=99=BB=E9=99=86?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 2 +- components.d.ts | 5 ----- index.html | 2 +- pnpm-lock.yaml | 9 +++++++++ src/layouts/components/AppLogo.vue | 10 +++------- src/layouts/components/Header.vue | 22 ++++------------------ src/layouts/components/UserArea.vue | 9 ++++----- src/model/base.ts | 11 +++++++++-- src/model/token.ts | 2 +- src/model/user.ts | 15 ++++++--------- src/pages/common/login.vue | 20 ++++---------------- src/router/index.ts | 2 +- 12 files changed, 43 insertions(+), 66 deletions(-) diff --git a/.env b/.env index da5b2cc..0f0928f 100644 --- a/.env +++ b/.env @@ -1,3 +1,3 @@ VITE_ENABLE_MOCK=false VITE_API_PREFIX=/api -VITE_PROXY_ENDPOINT=http://localhost:8000 +VITE_PROXY_ENDPOINT=https://bright.yilibili.com/api diff --git a/components.d.ts b/components.d.ts index cf28278..bbec505 100644 --- a/components.d.ts +++ b/components.d.ts @@ -8,7 +8,6 @@ export {} declare module 'vue' { export interface GlobalComponents { Copyright: typeof import('./src/components/Copyright.vue')['default'] - Dialog: typeof import('./src/components/Dialog.vue')['default'] RegularPage: typeof import('./src/components/RegularPage.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] @@ -17,7 +16,6 @@ declare module 'vue' { TButton: typeof import('tdesign-vue-next')['Button'] TCard: typeof import('tdesign-vue-next')['Card'] TCheckbox: typeof import('tdesign-vue-next')['Checkbox'] - TCol: typeof import('tdesign-vue-next')['Col'] TDialog: typeof import('tdesign-vue-next')['Dialog'] TDropdown: typeof import('tdesign-vue-next')['Dropdown'] TForm: typeof import('tdesign-vue-next')['Form'] @@ -29,9 +27,6 @@ declare module 'vue' { TLink: typeof import('tdesign-vue-next')['Link'] TMenu: typeof import('tdesign-vue-next')['Menu'] TMenuItem: typeof import('tdesign-vue-next')['MenuItem'] - TPagination: typeof import('tdesign-vue-next')['Pagination'] - TRow: typeof import('tdesign-vue-next')['Row'] - TSelect: typeof import('tdesign-vue-next')['Select'] TSpace: typeof import('tdesign-vue-next')['Space'] TTable: typeof import('tdesign-vue-next')['Table'] TTag: typeof import('tdesign-vue-next')['Tag'] diff --git a/index.html b/index.html index 0cea6cc..d4b4ce4 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Yili Admin + 布兰德后台管理
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bcd8208..a26db71 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -557,46 +557,55 @@ packages: resolution: {integrity: sha512-j63YtCIRAzbO+gC2L9dWXRh5BFetsv0j0va0Wi9epXDgU/XUi5dJKo4USTttVyK7fGw2nPWK0PbAvyliz50SCQ==} cpu: [arm] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm-musleabihf@4.22.4': resolution: {integrity: sha512-dJnWUgwWBX1YBRsuKKMOlXCzh2Wu1mlHzv20TpqEsfdZLb3WoJW2kIEsGwLkroYf24IrPAvOT/ZQ2OYMV6vlrg==} cpu: [arm] os: [linux] + libc: [musl] '@rollup/rollup-linux-arm64-gnu@4.22.4': resolution: {integrity: sha512-AdPRoNi3NKVLolCN/Sp4F4N1d98c4SBnHMKoLuiG6RXgoZ4sllseuGioszumnPGmPM2O7qaAX/IJdeDU8f26Aw==} cpu: [arm64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-arm64-musl@4.22.4': resolution: {integrity: sha512-Gl0AxBtDg8uoAn5CCqQDMqAx22Wx22pjDOjBdmG0VIWX3qUBHzYmOKh8KXHL4UpogfJ14G4wk16EQogF+v8hmA==} cpu: [arm64] os: [linux] + libc: [musl] '@rollup/rollup-linux-powerpc64le-gnu@4.22.4': resolution: {integrity: sha512-3aVCK9xfWW1oGQpTsYJJPF6bfpWfhbRnhdlyhak2ZiyFLDaayz0EP5j9V1RVLAAxlmWKTDfS9wyRyY3hvhPoOg==} cpu: [ppc64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-riscv64-gnu@4.22.4': resolution: {integrity: sha512-ePYIir6VYnhgv2C5Xe9u+ico4t8sZWXschR6fMgoPUK31yQu7hTEJb7bCqivHECwIClJfKgE7zYsh1qTP3WHUA==} cpu: [riscv64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-s390x-gnu@4.22.4': resolution: {integrity: sha512-GqFJ9wLlbB9daxhVlrTe61vJtEY99/xB3C8e4ULVsVfflcpmR6c8UZXjtkMA6FhNONhj2eA5Tk9uAVw5orEs4Q==} cpu: [s390x] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-gnu@4.22.4': resolution: {integrity: sha512-87v0ol2sH9GE3cLQLNEy0K/R0pz1nvg76o8M5nhMR0+Q+BBGLnb35P0fVz4CQxHYXaAOhE8HhlkaZfsdUOlHwg==} cpu: [x64] os: [linux] + libc: [glibc] '@rollup/rollup-linux-x64-musl@4.22.4': resolution: {integrity: sha512-UV6FZMUgePDZrFjrNGIWzDo/vABebuXBhJEqrHxrGiU6HikPy0Z3LfdtciIttEUQfuDdCn8fqh7wiFJjCNwO+g==} cpu: [x64] os: [linux] + libc: [musl] '@rollup/rollup-win32-arm64-msvc@4.22.4': resolution: {integrity: sha512-BjI+NVVEGAXjGWYHz/vv0pBqfGoUH0IGZ0cICTn7kB9PyjrATSkX+8WkguNjWoj2qSr1im/+tTGRaY+4/PdcQw==} diff --git a/src/layouts/components/AppLogo.vue b/src/layouts/components/AppLogo.vue index 1a39a53..b8cb384 100644 --- a/src/layouts/components/AppLogo.vue +++ b/src/layouts/components/AppLogo.vue @@ -1,14 +1,10 @@ - + - + diff --git a/src/layouts/components/Header.vue b/src/layouts/components/Header.vue index 668297a..46a901f 100644 --- a/src/layouts/components/Header.vue +++ b/src/layouts/components/Header.vue @@ -1,25 +1,11 @@ - + diff --git a/src/layouts/components/UserArea.vue b/src/layouts/components/UserArea.vue index 857ab9c..75352cf 100644 --- a/src/layouts/components/UserArea.vue +++ b/src/layouts/components/UserArea.vue @@ -1,9 +1,10 @@ -
- 记住账号 - 忘记密码? -
{{ loading ? '登录中' : '登录' }} - diff --git a/src/router/index.ts b/src/router/index.ts index ddbf593..c1a3dd8 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -24,7 +24,7 @@ const router = createRouter({ component: Layout, path: '/', redirect: { - name: 'dashboard' + name: 'classify' }, children: asyncRoutes }, -- 2.34.1