This commit is contained in:
2025-03-26 19:10:41 +08:00
parent 9463635e03
commit 3c85d9e0e7
28 changed files with 907 additions and 147 deletions

View File

@@ -1,14 +1,18 @@
<script>
import {useUserStore} from "./pinia/UserStore/index.js";
import {toPage} from "./utils/uils.js";
export default {
onLaunch: function () {
console.log('App Launch')
},
onShow: function () {
console.log('App Show')
},
onHide: function () {
console.log('App Hide')
},
onLaunch: function () {
},
onShow: function () {
const UserStore = useUserStore();
if (!UserStore.isLogin) {
toPage('/pages/login/index');
}
},
onHide: function () {
},
}
</script>