mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-01 19:14:28 +08:00
fix: 解决主题色切换报错的问题 (#5287)
This commit is contained in:
parent
7fb41f43cc
commit
296ae1c2e1
3 changed files with 10 additions and 8 deletions
|
@ -68,7 +68,7 @@ class RequestHttp {
|
|||
return;
|
||||
}
|
||||
if (data.code == ResultEnum.EXPIRED) {
|
||||
globalStore.errStatus = 'err-entrance';
|
||||
router.push({ name: 'Expired' });
|
||||
return;
|
||||
}
|
||||
if (data.code == ResultEnum.ERRXPACK) {
|
||||
|
|
|
@ -357,12 +357,14 @@ const onSave = async (key: string, val: any) => {
|
|||
globalStore.themeConfig.theme = val;
|
||||
}
|
||||
switchTheme();
|
||||
updateXpackSettingByKey('Theme', val === 'dark-gold' ? 'dark-gold' : '');
|
||||
if (val === 'dark-gold') {
|
||||
MsgSuccess(i18n.t('commons.msg.operationSuccess'));
|
||||
loading.value = false;
|
||||
search();
|
||||
return;
|
||||
if (globalStore.isProductPro) {
|
||||
updateXpackSettingByKey('Theme', val === 'dark-gold' ? 'dark-gold' : '');
|
||||
if (val === 'dark-gold') {
|
||||
MsgSuccess(i18n.t('commons.msg.operationSuccess'));
|
||||
loading.value = false;
|
||||
search();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (key === 'MenuTabs') {
|
||||
|
|
|
@ -106,7 +106,7 @@ interface DialogProps {
|
|||
passwdKeep: string;
|
||||
}
|
||||
const acceptParams = (params: DialogProps): void => {
|
||||
form.proxyUrl = params.url;
|
||||
form.proxyUrl = params.url || '127.0.0.1';
|
||||
form.proxyType = params.type;
|
||||
form.proxyPortItem = params.port ? Number(params.port) : 7890;
|
||||
form.proxyUser = params.user;
|
||||
|
|
Loading…
Add table
Reference in a new issue