完成适配移动端

This commit is contained in:
2025-03-01 10:52:11 +08:00
parent 1f79c93859
commit 8d19a58e9d
68 changed files with 2117 additions and 847 deletions

View File

@@ -3,7 +3,7 @@ import type { ApiResult } from '@/api';
import type { User } from '@/api/system/user/model';
import type { UpdatePasswordParam } from './model';
import type {CmsWebsite, CmsWebsiteParam} from "~/api/cms/cmsWebsite/model";
import {SERVER_API_URL} from "~/config";
import {COMMON_API_URL, SERVER_API_URL} from "~/config";
/**
* 获取网站信息
@@ -26,7 +26,7 @@ export async function getSiteInfo(params: CmsWebsiteParam) {
*/
export async function getUserInfo(): Promise<User> {
const config = useRuntimeConfig();
const res = await request.get<ApiResult<User>>(SERVER_API_URL + '/auth/user',{
const res = await request.get<ApiResult<User>>(COMMON_API_URL + '/auth/user',{
headers: {
TenantId: `${localStorage.getItem('ServerTenantId')}`
}