master
wangxia 2 months ago
parent 6de3529fa4
commit 8b4145a8b3

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

Loading…
Cancel
Save