新版本官网优化完成

This commit is contained in:
2025-02-15 02:53:56 +08:00
parent 3e84bbba59
commit 4c601b31a2
55 changed files with 3046 additions and 915 deletions

View File

@@ -25,7 +25,11 @@ export async function getSiteInfo(params: CmsWebsiteParam) {
*/
export async function getUserInfo(): Promise<User> {
const config = useRuntimeConfig();
const res = await request.get<ApiResult<User>>(config.public.apiServer + '/auth/user');
const res = await request.get<ApiResult<User>>(config.public.apiServer + '/auth/user',{
headers: {
TenantId: `${localStorage.getItem('TID_ADMIN')}`
}
});
if (res.code === 0 && res.data) {
return res.data;
}