refactor: 主题设置重构优化

This commit is contained in:
ray
2025-07-30 00:06:50 +08:00
parent 805078fd1a
commit a95fbd6a54
12 changed files with 234 additions and 209 deletions

View File

@@ -1,13 +1,8 @@
<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import { useTheme } from "@/composables/useTheme";
const { initTheme } = useTheme();
onLaunch(() => {
console.log("App Launch");
// 初始化主题
initTheme();
});
onShow(() => {