✨ feat: 修改登录页样式
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user