SEC_Warehouse/App.vue

26 lines
541 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script>
import { ensureCurrentPageAuth } from './utils/auth'
/**
* 应用根组件:仅承载全局生命周期与登录态兜底校验。
*/
export default {
onLaunch() {
console.log('App Launch')
},
onShow() {
console.log('App Show')
// 每次回到前台时检查当前页权限,避免未登录状态残留在受保护页面。
ensureCurrentPageAuth()
},
onHide() {
console.log('App Hide')
}
}
</script>
<style>
/* 每个页面公共 css当前按需在页面中引入 common.css */
</style>