<script>
import { go2 } from '@/utils/hook.js'
import store from '@/store/index.js'
export default {
  onLaunch: function () {
    const token = store.state.qnToken
    let flag = uni.getStorageSync('hasLaunch')
    if (flag && !token) {
      go2('login')
    }
    if (flag && token) {
      go2('client')
    }
  },
  onShow: function () {},
  onHide: function () {}
}
</script>

<style>
/*每个页面公共css */
@import url('./common/css/reset.scss');
@import '@/static/icon/iconfont.css';
page {
  height: 100%;
}
/* uni-dialog标题样式 */
.uni-dialog-title-text {
  font-size: 32rpx !important;
  color: #323233 !important;
  font-weight: 500 !important;
}
</style>
