fix(物联网): 每次进入工作台刷新菜单、视频列表添加为空状态
This commit is contained in:
parent
4b0c8a411f
commit
a1f0f0db02
|
@ -2,8 +2,8 @@
|
||||||
"name" : "物联网可视化",
|
"name" : "物联网可视化",
|
||||||
"appid" : "__UNI__604B8F1",
|
"appid" : "__UNI__604B8F1",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.31",
|
"versionName" : "1.0.32",
|
||||||
"versionCode" : 1031,
|
"versionCode" : 1032,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|
|
@ -108,11 +108,12 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.getUserInfo();
|
this.getUserInfo();
|
||||||
this.getUserMenu();
|
|
||||||
this.tabIndex = 1;
|
this.tabIndex = 1;
|
||||||
this.tabIndex = 0;
|
this.tabIndex = 0;
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
this.getUserMenu();
|
||||||
this.getUnreadNewNum();
|
this.getUnreadNewNum();
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
|
@ -129,7 +129,7 @@
|
||||||
this.$api.videoApi.getVideoList(params).then(res => {
|
this.$api.videoApi.getVideoList(params).then(res => {
|
||||||
console.log("getVideoList",res);
|
console.log("getVideoList",res);
|
||||||
if(res.code === 0){
|
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 curPageLen = curPageData && curPageData.length || 0;
|
||||||
let totalSize = res.data.totalCount;
|
let totalSize = res.data.totalCount;
|
||||||
curPageData.forEach((item,index)=>{
|
curPageData.forEach((item,index)=>{
|
||||||
|
|
Loading…
Reference in New Issue