1 Star 0 Fork 5K

AM/RuoYi-App

forked from 若依/RuoYi-App 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
App.vue 715 Bytes
Copy Edit Raw Blame History
若依 authored 2022-08-01 20:59 . 初次进入App时进入登录页
<script>
import config from './config'
import store from '@/store'
import { getToken } 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 (!getToken()) {
this.$tab.reLaunch('/pages/login')
}
}
}
}
</script>
<style lang="scss">
@import '@/static/scss/index.scss'
</style>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/xiao-ming-1999/RuoYi-App.git
git@gitee.com:xiao-ming-1999/RuoYi-App.git
xiao-ming-1999
RuoYi-App
RuoYi-App
master

Search