可信代码库-字典接口对接语言列表待补充
This commit is contained in:
@@ -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
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user