This commit is contained in:
shijingjing
2023-03-15 17:14:27 +08:00
parent 43b7aa757b
commit 43cee8bd0f

View File

@@ -35,7 +35,9 @@ export default {
} }
}, },
onShow() { onShow() {
console.log(uni.getStorageSync('inx'),'index');
if(uni.getStorageSync('inx')) { if(uni.getStorageSync('inx')) {
console.log(uni.getStorageSync('inx'), 'inx');
this.currIndex = uni.getStorageSync('inx') this.currIndex = uni.getStorageSync('inx')
} }
if(this.currIndex == 0) { if(this.currIndex == 0) {
@@ -50,7 +52,7 @@ export default {
} }
}); });
}, },
onUnload() { onHide() {
uni.removeStorageSync('inx') uni.removeStorageSync('inx')
}, },
components: { components: {