Files
youlai-app/src/App.vue

34 lines
554 B
Vue

<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import { useThemeStore } from "@/store";
// 主题初始化
const themeStore = useThemeStore();
onLaunch(() => {
console.log("App Launch");
// 初始化主题
themeStore.initTheme();
});
onShow(() => {
console.log("App Show");
});
onHide(() => {
console.log("App Hide");
});
</script>
<style lang="scss">
:root {
--primary-color: #165dff;
--primary-color-light: #94bfff;
--primary-color-dark: #0e3c9b;
}
page {
background: #f8f8f8;
}
</style>