fix(物联网): 每次进入工作台刷新菜单、视频列表添加为空状态

This commit is contained in:
风花一世月 2024-08-05 22:00:50 +08:00
parent 4b0c8a411f
commit a1f0f0db02
3 changed files with 5 additions and 4 deletions

View File

@ -2,8 +2,8 @@
"name" : "物联网可视化",
"appid" : "__UNI__604B8F1",
"description" : "",
"versionName" : "1.0.31",
"versionCode" : 1031,
"versionName" : "1.0.32",
"versionCode" : 1032,
"transformPx" : false,
/* 5+App */
"app-plus" : {

View File

@ -108,11 +108,12 @@
}
})
this.getUserInfo();
this.getUserMenu();
this.tabIndex = 1;
this.tabIndex = 0;
},
onShow() {
this.getUserMenu();
this.getUnreadNewNum();
},
mounted() {

View File

@ -129,7 +129,7 @@
this.$api.videoApi.getVideoList(params).then(res => {
console.log("getVideoList",res);
if(res.code === 0){
let curPageData = res.data && res.data.list;
let curPageData = res.data && res.data.list || [];
let curPageLen = curPageData && curPageData.length || 0;
let totalSize = res.data.totalCount;
curPageData.forEach((item,index)=>{