1 Star 0 Fork 103

igit-cn/ReportPro

forked from report/ReportPro 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
App.vue 685 Bytes
Copy Edit Raw Blame History
howcode authored 2021-03-28 23:25 . 适配PC端/读取uniCloud/组装数据
<script>
import {
mapGetters,
mapActions
} from 'vuex'
import config from '@/admin.config.js'
import { version } from './package.json'
export default {
computed: {
...mapGetters({
isTokenValid: 'user/isTokenValid'
})
},
methods: {
...mapActions({
init: 'app/init'
})
},
onPageNotFound(msg) {
uni.redirectTo({
url: config.error.url
})
},
onLaunch: function() {
if (!this.isTokenValid) {
uni.redirectTo({
url: config.login.url
})
} else {
this.init()
}
},
onShow: function() {
},
onHide: function() {
}
}
</script>
<style>
@import '@/common/uni.css';
@import '@/common/uni-icons.css';
</style>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/igit-cn/ReportPro.git
git@gitee.com:igit-cn/ReportPro.git
igit-cn
ReportPro
ReportPro
master

Search