| 
...
 | 
...
 | 
@@ -12,17 +12,17 @@ | 
| 
12
 | 
12
 | 
     overlayClassName="app-locale-picker-overlay"
 | 
| 
13
 | 
13
 | 
   >
 | 
| 
14
 | 
14
 | 
     <span class="cursor-pointer flex items-center" :style="{ color: color }">
 | 
| 
15
 | 
 
 | 
-      <Icon icon="ion:language" />
 | 
| 
16
 | 
 
 | 
-      <span v-if="showText" class="ml-1">{{ getLocaleText }}</span>
 | 
| 
 
 | 
15
 | 
+      <!-- <Icon icon="ion:language" />
 | 
| 
 
 | 
16
 | 
+      <span v-if="showText" class="ml-1">{{ getLocaleText }}</span> -->
 | 
| 
17
 | 
17
 | 
     </span>
 | 
| 
18
 | 
18
 | 
   </Dropdown>
 | 
| 
19
 | 
19
 | 
 </template>
 | 
| 
20
 | 
20
 | 
 <script lang="ts" setup>
 | 
| 
21
 | 
21
 | 
   import type { LocaleType } from '/#/config';
 | 
| 
22
 | 
22
 | 
   import type { DropMenu } from '/@/components/Dropdown';
 | 
| 
23
 | 
 
 | 
-  import { ref, watchEffect, unref, computed } from 'vue';
 | 
| 
 
 | 
23
 | 
+  import { ref, watchEffect, unref } from 'vue';
 | 
| 
24
 | 
24
 | 
   import { Dropdown } from '/@/components/Dropdown';
 | 
| 
25
 | 
 
 | 
-  import { Icon } from '/@/components/Icon';
 | 
| 
 
 | 
25
 | 
+  // import { Icon } from '/@/components/Icon';
 | 
| 
26
 | 
26
 | 
   import { useLocale } from '/@/locales/useLocale';
 | 
| 
27
 | 
27
 | 
   import { localeList } from '/@/settings/localeSetting';
 | 
| 
28
 | 
28
 | 
 
 | 
| 
...
 | 
...
 | 
@@ -45,13 +45,13 @@ | 
| 
45
 | 
45
 | 
 
 | 
| 
46
 | 
46
 | 
   const { changeLocale, getLocale } = useLocale();
 | 
| 
47
 | 
47
 | 
 
 | 
| 
48
 | 
 
 | 
-  const getLocaleText = computed(() => {
 | 
| 
49
 | 
 
 | 
-    const key = selectedKeys.value[0];
 | 
| 
50
 | 
 
 | 
-    if (!key) {
 | 
| 
51
 | 
 
 | 
-      return '';
 | 
| 
52
 | 
 
 | 
-    }
 | 
| 
53
 | 
 
 | 
-    return localeList.find((item) => item.event === key)?.text;
 | 
| 
54
 | 
 
 | 
-  });
 | 
| 
 
 | 
48
 | 
+  // const getLocaleText = computed(() => {
 | 
| 
 
 | 
49
 | 
+  //   const key = selectedKeys.value[0];
 | 
| 
 
 | 
50
 | 
+  //   if (!key) {
 | 
| 
 
 | 
51
 | 
+  //     return '';
 | 
| 
 
 | 
52
 | 
+  //   }
 | 
| 
 
 | 
53
 | 
+  //   return localeList.find((item) => item.event === key)?.text;
 | 
| 
 
 | 
54
 | 
+  // });
 | 
| 
55
 | 
55
 | 
 
 | 
| 
56
 | 
56
 | 
   watchEffect(() => {
 | 
| 
57
 | 
57
 | 
     selectedKeys.value = [unref(getLocale)];
 | 
...
 | 
...
 | 
 |