From 4d95ba8b7b6b0e14e27e3d256868a9f4050e066e Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Mon, 28 Jul 2025 17:35:42 +0800 Subject: [PATCH] =?UTF-8?q?Fix(=E6=B6=88=E6=81=AF):=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E8=BF=9B=E5=85=A5AI=E9=A6=96=E9=A1=B5=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=AE=9A=E4=BD=8D=E7=9A=84=E5=9F=8E=E5=B8=82?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=A4=A9=E6=B0=94=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index.vue | 1 + pkg_common/views/roomLogs.vue | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pages/home/index.vue b/pages/home/index.vue index d86130f..c2f5ead 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -1327,6 +1327,7 @@ export default { const { latitude, longitude } = mapData getCurAddress(latitude, longitude).then(address => { this.cityName = address[1].data.result.ad_info.city + uni.setStorageSync('locationCityName', this.cityName) this.isLocating = false this.getPageData() }).catch(() => { diff --git a/pkg_common/views/roomLogs.vue b/pkg_common/views/roomLogs.vue index aabcd30..13a1046 100644 --- a/pkg_common/views/roomLogs.vue +++ b/pkg_common/views/roomLogs.vue @@ -101,8 +101,9 @@ export default { }, methods: { enterAiChat() { + const cityName = uni.getStorageSync('locationCityName') || '' uni.navigateTo({ - url: '/aiChat/views/index?click=1' + url: `/aiChat/views/index?click=1&cityName=${cityName}` }) }, /**