|
@@ -19,15 +19,15 @@ const currentSize = computed(() => appStore.getCurrentSize)
|
|
|
const greyMode = computed(() => appStore.getGreyMode)
|
|
|
|
|
|
// 根据浏览器当前主题设置系统主题色
|
|
|
-const setDefaultTheme = () => {
|
|
|
- const { getStorage } = useStorage()
|
|
|
- if (getStorage('isDark') !== null) {
|
|
|
- appStore.setIsDark(getStorage('isDark'))
|
|
|
- return
|
|
|
- }
|
|
|
- const isDarkTheme = isDark()
|
|
|
- appStore.setIsDark(isDarkTheme)
|
|
|
-}
|
|
|
+// const setDefaultTheme = () => {
|
|
|
+// const { getStorage } = useStorage()
|
|
|
+// if (getStorage('isDark') !== null) {
|
|
|
+// appStore.setIsDark(getStorage('isDark'))
|
|
|
+// return
|
|
|
+// }
|
|
|
+// const isDarkTheme = isDark()
|
|
|
+// appStore.setIsDark(isDarkTheme)
|
|
|
+// }
|
|
|
|
|
|
const setPageData = () => {
|
|
|
const { getStorage } = useStorage('localStorage')
|
|
@@ -38,7 +38,7 @@ const setPageData = () => {
|
|
|
}
|
|
|
|
|
|
setPageData()
|
|
|
-setDefaultTheme()
|
|
|
+// setDefaultTheme()
|
|
|
</script>
|
|
|
|
|
|
<template>
|