1 Star 0 Fork 5.4K

frey.yao/RuoYi-App

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
App.vue 751 Bytes
一键复制 编辑 原始数据 按行查看 历史
Tacit 提交于 2024-09-08 23:13 . feat(upload)
<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 "uview-ui/index.scss";
@import '@/static/scss/index.scss';
</style>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/yaofli888/RuoYi-App.git
[email protected]:yaofli888/RuoYi-App.git
yaofli888
RuoYi-App
RuoYi-App
master

搜索帮助