This commit is contained in:
yanran200730
2022-07-28 16:56:22 +08:00
parent 05fea73a62
commit 83fe4f8854
2 changed files with 13 additions and 0 deletions

View File

@@ -311,6 +311,8 @@
if (res.code === 0) {
const data = res.data.result.now
alert(JSON.stringify(data))
uni.setStorageSync('address', {
...uni.getStorageSync('address'),
weather: `${data.text} ${data.temp}°` || ''