Browse Source

🎨 修改细节问题

imengyu 2 months ago
parent
commit
412217010d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/pages/inhert/village/list.vue

+ 3 - 1
src/pages/inhert/village/list.vue

@@ -19,6 +19,7 @@ import { onMounted, ref } from 'vue';
 import VillageApi from '@/api/inhert/VillageApi';
 import { navTo } from '@/common/utils/PageAction';
 import CommonContent from '@/api/CommonContent';
+import { waitTimeOut } from '@imengyu/imengyu-utils';
 
 const dropdownNames = ref<DropDownNames[]>([]);
 const list = ref();
@@ -33,7 +34,7 @@ async function loadData(
 
   const list = page == 1 ? await VillageApi.getVallageList(tabSelect) : [];
   list.filter((p) => !searchText || p.title.includes(searchText)).forEach((p) => {
-    p.desc = p.ichName as string;
+    p.desc = p.desc;
     p.badge = p.district;
     p.bottomTags = [
       p.levelText, 
@@ -58,6 +59,7 @@ onMounted(async () => {
   if (it1) it1.title = '特色村舍';
   if (it2) it2.title = '传统村落';
   tabs.value = res.map((p) => ({ id: p.id, name: p.title }));
+  await waitTimeOut(400);
   list.value.load();
 })
 </script>