RuoYi-App 1.0.0

This commit is contained in:
RuoYi
2022-08-01 08:14:57 +08:00
parent 766bf58c8b
commit 0ca2bd20b8
349 changed files with 43898 additions and 0 deletions

32
App.vue Normal file
View File

@@ -0,0 +1,32 @@
<script>
import config from './config'
import store from '@/store'
import { getToken } from '@/utils/auth'
export default {
onLaunch: function() {
this.initApp()
},
methods: {
// 初始化应用
initApp() {
// 初始化应用配置
this.initConfig()
// 检查用户登录状态
this.checkLogin()
},
initConfig() {
this.globalData.config = config
},
checkLogin() {
if (!getToken()) {
uni.reLaunch({ url: '/pages/login' })
}
}
}
}
</script>
<style lang="scss">
@import '@/static/scss/index.scss'
</style>