update
This commit is contained in:
22
src/App.vue
22
src/App.vue
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user