wip: 临时提交
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<script setup lang="ts">
|
||||
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
|
||||
import { useThemeStore } from "@/store";
|
||||
import { useTheme } from "@/composables/useTheme";
|
||||
|
||||
// 主题初始化
|
||||
const themeStore = useThemeStore();
|
||||
// 使用主题 composable
|
||||
const { initTheme } = useTheme();
|
||||
|
||||
onLaunch(() => {
|
||||
console.log("App Launch");
|
||||
// 初始化主题
|
||||
themeStore.initTheme();
|
||||
initTheme();
|
||||
});
|
||||
|
||||
onShow(() => {
|
||||
|
||||
Reference in New Issue
Block a user