测试
This commit is contained in:
@@ -308,7 +308,6 @@
|
||||
|
||||
getWeather (code) {
|
||||
this.$http.post(`/api/bdweather/wdata?districtId=${code}`).then(res => {
|
||||
console.log(res)
|
||||
if (res.code === 0) {
|
||||
const data = res.data.result.now
|
||||
|
||||
@@ -357,12 +356,10 @@
|
||||
})
|
||||
},
|
||||
error: res => {
|
||||
alert(JSON.stringify(res))
|
||||
console.log(res)
|
||||
}
|
||||
})
|
||||
}).catch(e => {
|
||||
alert(JOSN.stringify(e))
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
@@ -81,7 +81,8 @@
|
||||
this.address = uni.getStorageSync('address').address || ''
|
||||
this.weather = uni.getStorageSync('address').weather || ''
|
||||
}
|
||||
}
|
||||
},
|
||||
deep: true
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user