1 Star 3 Fork 2

易达/uniapp项目初始化开发模板

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
App.vue 768 Bytes
一键复制 编辑 原始数据 按行查看 历史
易拉宝 提交于 2024-03-28 21:21 . vue3版
<script setup>
import UpdateMonitor from '@/utils/update-monitor.js';
import sceneInfo from '@/utils/scene-info.js';
import { useThemeStore } from '@/store/index.js'
onLaunch((options) => {
// console.log(options);
console.log('App Launch')
})
onShow((options) => {
// console.log(options);
console.log('App Show')
UpdateMonitor()
const scene = sceneInfo(options.scene);
console.log(scene);
})
onHide(() => {
console.log('App Hide')
})
onPageNotFound(() => {
uni.reLaunch({
url: "/pages/index/index"
});
})
onThemeChange((e) => {
console.log("系统主题:", e);
const themeStore = useThemeStore()
themeStore.setTheme(e.theme)
})
</script>
<style lang="scss">
@import 'sard-uniapp/index.scss';
</style>
<style></style>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/eida/uniapp-init.git
git@gitee.com:eida/uniapp-init.git
eida
uniapp-init
uniapp项目初始化开发模板
vue3

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385