From 24dc7ec489cc2206c69ad26b4c931905ad81bd8a Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期一, 17 二月 2025 14:31:52 +0800
Subject: [PATCH] fix: b端

---
 apps/cMiniApp/src/pages/home/index.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/apps/cMiniApp/src/pages/home/index.vue b/apps/cMiniApp/src/pages/home/index.vue
index e8739cf..6f60143 100644
--- a/apps/cMiniApp/src/pages/home/index.vue
+++ b/apps/cMiniApp/src/pages/home/index.vue
@@ -44,7 +44,7 @@
         <Menu>
           <MenuItem title="绛涢��" ref="selectItem">
             <HomeQueryMenuView
-              v-model:gender="queryState.gender"
+              v-model:query="queryMenuState"
               @close="handleMenuSelectClose"
             ></HomeQueryMenuView>
           </MenuItem>
@@ -68,7 +68,7 @@
 import { useUserStore } from '@/stores/modules/user';
 import { RectDown, Location2 } from '@nutui/icons-vue-taro';
 import Taro from '@tarojs/taro';
-import { LocationUtils, trim } from '@12333/utils';
+import { setLocationCity } from '@/utils';
 import _ from 'lodash';
 import IconLogo from '@/assets/home/icon-logo.png';
 import { TaskCard, ProTabs, ProTabPane } from '@12333/components';
@@ -79,7 +79,15 @@
 
 const userStore = useUserStore();
 
-const { searchValue, queryState, handleSearch, infiniteLoadingProps } = useTaskList();
+const { searchValue, queryState, handleSearch, infiniteLoadingProps, queryMenuState } = useTaskList(
+  { cityName: locationCity }
+);
+
+onMounted(async () => {
+  try {
+    await setLocationCity();
+  } catch (error) {}
+});
 
 function goCitySelect() {
   Taro.navigateTo({

--
Gitblit v1.9.1