index bug

This commit is contained in:
花有清香月有阴
2021-12-23 10:31:10 +08:00
parent 8d52641c97
commit c635c55699
4 changed files with 67 additions and 25 deletions

View File

@@ -136,6 +136,7 @@ export default {
props: {},
data() {
return {
index: '',
lists: [
{
iconPath: 'home',
@@ -198,9 +199,16 @@ export default {
...mapState(['user', 'global']),
},
watch: {},
onLoad() {
onLoad(o) {
if (o.index) {
this.indexBar = o.index
}
this.getEchart1()
this.getEchart2()
this.getList()
this.getList2()
this.currentTabBar = this.indexBar
this.areaId = this.user.areaId
},
mounted() {