You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
753 B

10 months ago
<script>
import config from './config'
import store from '@/store'
import { getAccessToken } from '@/utils/auth'
export default {
onLaunch: function() {
this.initApp()
},
methods: {
// 初始化应用
initApp() {
// 初始化应用配置
this.initConfig()
// 检查用户登录状态
//#ifdef H5
this.checkLogin()
//#endif
},
initConfig() {
this.globalData.config = config
},
checkLogin() {
// if (!getAccessToken()) {
// this.$tab.reLaunch('/pages/login')
// }
10 months ago
}
}
}
</script>
<style lang="scss">
@import '@/static/scss/index.scss';
@import "./uni_modules/vk-uview-ui/index.scss";
</style>