diff --git a/api/layout/index.ts b/api/layout/index.ts index 947f260..05ff55c 100644 --- a/api/layout/index.ts +++ b/api/layout/index.ts @@ -3,13 +3,13 @@ import type { ApiResult } from '@/api'; import type { User } from '@/api/system/user/model'; import type { UpdatePasswordParam } from './model'; import { MODULES_API_URL, SERVER_API_URL } from '~/config'; -import type {Website} from "~/api/cms/website/model"; +import type {CmsWebsite} from "~/api/cms/cmsWebsite/model"; /** * 获取网站信息 */ export async function getSiteInfo() { - const res = await request.get>( + const res = await request.get>( MODULES_API_URL + '/cms/website/getSiteInfo' ); if (res.data.code === 0 && res.data.data) { diff --git a/components/AppFooter.vue b/components/AppFooter.vue index 7c9417a..d2b941c 100644 --- a/components/AppFooter.vue +++ b/components/AppFooter.vue @@ -69,7 +69,7 @@
- github + github
@@ -97,6 +97,7 @@ import type {Config} from "~/types/global"; const config = useConfigInfo(); const website = useWebsite(); const subMenu = useSubMenu(); +const SysDomain = localStorage.getItem('SysDomain'); console.log('---------config---------',config.value) console.log('---------website---------',website.value) console.log('---------subMenu---------',subMenu.value) diff --git a/layouts/default.vue b/layouts/default.vue index 3af09a9..999df4d 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -95,6 +95,10 @@ const reload = async () => { if (website.value.bottomNavs) { subMenu.value = website.value?.bottomNavs; } + if(website.value.config){ + localStorage.setItem('Domain',website.value.config.Domain); + localStorage.setItem('SysDomain',website.value.config.SysDomain); + } } // TODO 3 读取网站配置信息