ljc 1 vecka sedan
förälder
incheckning
8537b2f755

+ 1 - 0
components/cwg-complex-search.vue

@@ -320,6 +320,7 @@ const ownerPageRoute = ref('')
 
 /** 仅字段结构变化时重新初始化(语言切换改 label 不触发) */
 const getFieldsSignature = (fields) => {
+  console.log(fields)
     if (!fields?.length) return ''
     return JSON.stringify(
         fields.filter(Boolean).map((field) => ({

+ 7 - 1
composables/useAccountOptions.js

@@ -55,7 +55,13 @@ export function useAccountOptions() {
     }
 
     onMounted(() => {
-        // 缓存没有 → 才请求
+      // console.log('hook useAccountOptions mounted')
+      console.log(loginOptions.value)
+        if (loginOptions.value && loginOptions.value.length > 0) {
+            isLoaded.value = true
+            isSuccess.value = true
+            return
+        }
         getDateList()
     })
 

+ 2 - 2
locale/cn.json

@@ -56,8 +56,8 @@
       "item1": "归档账户"
     },
     "Btn": {
-      "More": "隐藏",
-      "Hide": "更多"
+      "More": "更多",
+      "Hide": "隐藏"
     },
     "system": {
       "title1": "系统切换",

+ 6 - 1
pages/customer/dashboard.vue

@@ -346,6 +346,11 @@
   const getDateList = async () => {
     let res = await customApi.CustomDropdown({ platform: "" })
     if (res.code == Code.StatusOK) {
+      dropDown.value = res.data || []
+      loginOptions.value = (res.data || []).map(item => ({
+        text: item.login,
+        value: item.login,
+      }))
       loginDataOptions.value = res.data.map(item => ({
         ...item,
         label: `${item.login}`,
@@ -661,7 +666,7 @@
     loading.value = true
     goTime()
     await getData()
-    await getDropDown()
+    // await getDropDown()
     await getDateList()
     await getAccountList()
     // #ifdef H5