From f1d291ec72524adeeb5ff0bb33108e8863715611 Mon Sep 17 00:00:00 2001 From: KuroSago Date: Wed, 28 Aug 2024 20:39:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Iconify/index.vue | 7 +-- src/pages.json | 2 +- src/pages/about/index.vue | 6 +- src/pages/demo/index.vue | 12 +--- src/pages/index/index.vue | 7 +++ src/pages/login/index.vue | 83 +++++++------------------- src/pages/splashScreen/index.vue | 41 +++++++++++-- src/router/guard.ts | 13 ++-- src/router/index.ts | 1 + src/stores/modules/system.ts | 10 ++-- src/stores/modules/user.ts | 20 +++---- src/theme/theme.ts | 14 ++--- tailwind.config.js | 18 ------ unocss.config.ts => tailwind.config.ts | 48 ++++----------- vite/plugins/build.unocss.config.ts | 56 +++++------------ 15 files changed, 132 insertions(+), 206 deletions(-) delete mode 100644 tailwind.config.js rename unocss.config.ts => tailwind.config.ts (65%) diff --git a/src/components/Iconify/index.vue b/src/components/Iconify/index.vue index b5e8706..9b72a26 100644 --- a/src/components/Iconify/index.vue +++ b/src/components/Iconify/index.vue @@ -10,18 +10,18 @@ interface Props { icon: string size?: string | number - color?: string + className?: string } const props = withDefaults(defineProps(), { size: 'inherit', - color: 'inherit', + class: '', }); const iconSize = computed(() => (Number.isNaN(Number(props.size)) ? `${props.size}` : `${props.size}rpx`)); diff --git a/src/pages.json b/src/pages.json index a5a9108..9190da2 100644 --- a/src/pages.json +++ b/src/pages.json @@ -20,7 +20,7 @@ }, "meta": { "tabBar": true, - "ignoreAuth": true + "ignoreAuth": false } }, { diff --git a/src/pages/about/index.vue b/src/pages/about/index.vue index 01ea8cb..fc54f7a 100644 --- a/src/pages/about/index.vue +++ b/src/pages/about/index.vue @@ -4,7 +4,7 @@ import { useUserStore } from '@/stores/modules/user'; const router = useRouter(); const userStore = useUserStore(); -const { loginOrNot, userInfo } = storeToRefs(userStore); +const { isLogined, userInfo } = storeToRefs(userStore); function handleJump(url: string) { router.push(url); @@ -18,7 +18,7 @@ function handleLoginOut() {