chore: initial commit
Some checks failed
Synchronize to Gitee / repo-sync (push) Has been cancelled
Typos Checking / Spell Check with Typos (push) Has been cancelled

This commit is contained in:
2026-06-23 11:56:23 +08:00
commit 72e2110987
2883 changed files with 367388 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import type { CordysAxios } from '@lib/shared/api/http/Axios';
import { LocaleChangeUrl, VersionUrl } from '@lib/shared/api/requrls/sys';
import type { SystemVersion } from '@lib/shared/models/common';
export default function useSysApi(CDR: CordysAxios) {
// 获取系统版本信息
function getSystemVersion() {
return CDR.get<SystemVersion>({ url: VersionUrl });
}
function changeLocaleBackEnd(language: string) {
return CDR.post({ url: LocaleChangeUrl, data: { language } });
}
return {
getSystemVersion,
changeLocaleBackEnd,
};
}