Feat(AI):增加模块未定位进入时不显示天气信息逻辑
This commit is contained in:
@@ -24,7 +24,8 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
showImg: false,
|
||||
settingInfo: {}
|
||||
settingInfo: {},
|
||||
localCityName: uni.getStorageSync('locationCityName') || ''
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -42,7 +43,7 @@ export default {
|
||||
},
|
||||
enterAiChat() {
|
||||
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