feat: 修改登录页样式

This commit is contained in:
砂糖
2025-09-05 10:03:26 +08:00
parent abe3c57300
commit d459072a11
8 changed files with 42 additions and 12 deletions

View File

@@ -6,12 +6,15 @@
import useSettingsStore from '@/store/modules/settings'
import { handleThemeStyle } from '@/utils/theme'
import useProductStore from '@/store/modules/product'
import { getToken } from '@/utils/auth'
onMounted(() => {
nextTick(() => {
// 初始化主题样式
handleThemeStyle(useSettingsStore().theme)
useProductStore().fetchProductMap()
if (getToken()) {
useProductStore().fetchProductMap()
}
})
})
</script>