feat: 修改已知问题
This commit is contained in:
@@ -65,14 +65,23 @@
|
||||
},
|
||||
}
|
||||
},
|
||||
watch:{
|
||||
current:{
|
||||
handler(val){
|
||||
uni.setStorageSync('fromNonTabBar', val);
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
const fromNonTabBar = uni.getStorageSync('fromNonTabBar');
|
||||
console.log(fromNonTabBar,'fromNonTabBar---')
|
||||
if(!fromNonTabBar){
|
||||
this.current = 1
|
||||
}else {
|
||||
this.current = 0
|
||||
}
|
||||
this.current = fromNonTabBar && Number(fromNonTabBar)
|
||||
// if(!fromNonTabBar){
|
||||
// this.current = 1
|
||||
// }else {
|
||||
// this.current = 0
|
||||
// }
|
||||
uni.removeStorageSync('fromNonTabBar');
|
||||
uni.$off('operate')
|
||||
uni.$on('refresh', () => {
|
||||
|
||||
Reference in New Issue
Block a user