diff --git a/src/views/pictureOnMap/TopTab/index.vue b/src/views/pictureOnMap/TopTab/index.vue index 9c3b050..4ffcb28 100644 --- a/src/views/pictureOnMap/TopTab/index.vue +++ b/src/views/pictureOnMap/TopTab/index.vue @@ -111,6 +111,8 @@ // }, ]); const TabClick = item => { + console.log('itemitemitem2',item); + newfiberMap.map.easeTo(newfiberMap.config_.params.init); bus.emit('clearTemporaryData'); if (item.link == '/WaterAssets') { @@ -121,7 +123,9 @@ } activeName.value = item.value; localStorage.setItem('WB_Brad_in_actived', activeName.value); - localStorage.setItem('WB_Brad_in_Link',activeName.link) + localStorage.setItem('WB_Brad_in_Link',item.link) + console.log('item.link',item.link); + debugger router.push({ path: item.link, }); @@ -197,11 +201,11 @@ } }); - activeName.value = localStorage.getItem('WB_Brad_in_actived'); + activeName.value = localStorage.getItem('WB_Brad_in_actived')||2; // lastActived.value = 2; let item={ - link:localStorage.getItem('WB_Brad_in_Link'), - value:localStorage.getItem('WB_Brad_in_actived'), + link:localStorage.getItem('WB_Brad_in_Link')||'/WaterAssets', + value:localStorage.getItem('WB_Brad_in_actived')||2, } TabClick(item) updateTime();