可信代码库-字典接口对接语言列表待补充

This commit is contained in:
付民康
2025-06-13 10:29:46 +08:00
parent 128ebdd32e
commit 60352460cb
3 changed files with 26 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ import menu from '@/constant/menu';
import { type listType, type itemProps } from '@/components/NavTabs/types';
import { useRoute, useRouter } from 'vue-router';
import { getCustomMenuList } from '@/api/org/devIndex';
import { basicDict } from '@/api/jyh';
export const useGlobalInfoStore = defineStore('globalInfo', () => {
const route = useRoute();
@@ -30,6 +31,8 @@ export const useGlobalInfoStore = defineStore('globalInfo', () => {
{ value: 'National_Defense', name: '国防' },
]);
const languageList = ref([]);
const menuInfo = computed(() => {
// 当前菜单
return globalMenuInfo.value[menuType.value] || [];
@@ -78,6 +81,13 @@ export const useGlobalInfoStore = defineStore('globalInfo', () => {
}
};
// TODO:获取语言列表,待开发
const setLanguageList = async() => {
const res = await basicDict({
parentId: 184
});
};
const updateHeaderSearch = (data: any) => {
headerSearch.value = { ...data };
}
@@ -137,6 +147,7 @@ export const useGlobalInfoStore = defineStore('globalInfo', () => {
setNamespaceType,
setGlobalTheme,
updateHeaderSearch,
industryList
industryList,
setLanguageList
};
});