10.21 语言切换 跟新菜单接口

property_main
zz 1 month ago
parent dac0789a79
commit 8e9c173336

@ -1227,7 +1227,7 @@ export const SysHomePageApiFp = function (configuration?: Configuration) {
async apiGetChargMonitorChargBinData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSysUser>>> { async apiGetChargMonitorChargBinData(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AdminResultSysUser>>> {
const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiGetChargMonitorChargBinData(options); const localVarAxiosArgs = await SysHomePageApiAxiosParamCreator(configuration).apiGetChargMonitorChargBinData(options);
const second_url = 'http://192.168.2.14:6035' const second_url = 'http://localhost:5035'
return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => { return (axios: AxiosInstance = globalAxios, basePath: string = second_url) => {
const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url }; const axiosRequestArgs: AxiosRequestConfig = { ...localVarAxiosArgs.options, url: second_url + localVarAxiosArgs.url };

@ -112,6 +112,7 @@ import { clearAccessTokens, getAPI } from '/@/utils/axios-utils';
import { SysAuthApi, SysNoticeApi } from '/@/api-services/api'; import { SysAuthApi, SysNoticeApi } from '/@/api-services/api';
import Push from 'push.js'; import Push from 'push.js';
import { signalR } from '/@/views/system/onlineUser/signalR'; import { signalR } from '/@/views/system/onlineUser/signalR';
import { initBackEndControlRoutes } from '/@/router/backEnd';
// //
@ -213,13 +214,15 @@ const onComponentSizeChange = (size: string) => {
window.location.reload(); window.location.reload();
}; };
// //
const onLanguageChange = (lang: string) => { const onLanguageChange =async (lang: string) => {
Local.remove('themeConfig'); Local.remove('themeConfig');
themeConfig.value.globalI18n = lang; themeConfig.value.globalI18n = lang;
Local.set('themeConfig', themeConfig.value); Local.set('themeConfig', themeConfig.value);
locale.value = lang; locale.value = lang;
other.useTitle(); other.useTitle();
initI18nOrSize('globalI18n', 'disabledI18n'); initI18nOrSize('globalI18n', 'disabledI18n');
await initBackEndControlRoutes();//
// console.log('xxx')
}; };
// /i18n // /i18n
const initI18nOrSize = (value: string, attr: string) => { const initI18nOrSize = (value: string, attr: string) => {

Loading…
Cancel
Save