master
wangxia 2 months ago
parent 6de3529fa4
commit 8b4145a8b3

@ -487,14 +487,14 @@ export default {
methods: { methods: {
loadSelectedCityFromCache() { loadSelectedCityFromCache() {
// 'selectedCity' // 'selectedCity'
return new Promise((reso, rej) => {
const cachedCity = uni.getStorageSync("selectedCity"); const cachedCity = uni.getStorageSync("selectedCity");
console.log("this.selectedCity", this.selectedCity); console.log("this.selectedCity", this.selectedCity);
console.log("this.selectedCity", cachedCity); console.log("this.selectedCity", cachedCity);
if (cachedCity && this.selectedCity != cachedCity) { if (cachedCity && this.selectedCity != cachedCity) {
this.selectedCity = cachedCity; this.selectedCity = cachedCity;
}
return new Promise((reso, rej) => {
reso(); reso();
}
}); });
}, },
checkScroll() { checkScroll() {

Loading…
Cancel
Save