Feat(AI):增加模块未定位进入时不显示天气信息逻辑
This commit is contained in:
@@ -24,7 +24,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showImg: false,
|
showImg: false,
|
||||||
settingInfo: {}
|
settingInfo: {},
|
||||||
|
localCityName: uni.getStorageSync('locationCityName') || ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -42,7 +43,7 @@ export default {
|
|||||||
},
|
},
|
||||||
enterAiChat() {
|
enterAiChat() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/aiChat/views/index?click=1&cityName=' + this.cityName
|
url: '/aiChat/views/index?click=1&cityName=' + (this.cityName || this.localCityName)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user