1 Star 0 Fork 305

rsr / yudao-ui-admin-uniapp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
App.vue 693 Bytes
一键复制 编辑 原始数据 按行查看 历史
<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')
}
}
}
}
</script>
<style lang="scss">
@import '@/static/scss/index.scss'
</style>
1
https://gitee.com/rsr/yudao-ui-admin-uniapp.git
git@gitee.com:rsr/yudao-ui-admin-uniapp.git
rsr
yudao-ui-admin-uniapp
yudao-ui-admin-uniapp
master

搜索帮助