mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-22 13:27:32 +08:00
fix: Fix the problem that the agent remembers the password invalid (#8334)
This commit is contained in:
parent
b41afc152a
commit
f5c174b839
2 changed files with 6 additions and 6 deletions
|
@ -91,7 +91,7 @@ var InitSetting = &gormigrate.Migration{
|
|||
if err := tx.Create(&model.Setting{Key: "ProxyPasswd", Value: ""}).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
if err := tx.Create(&model.Setting{Key: "PrsoxyPasswdKeep", Value: ""}).Error; err != nil {
|
||||
if err := tx.Create(&model.Setting{Key: "ProxyPasswdKeep", Value: ""}).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
val := `{"id":"1","label":"/xpack","isCheck":true,"title":"xpack.menu","children":[{"id":"2","label":"Dashboard","isCheck":true,"title":"xpack.waf.name","path":"/xpack/waf/dashboard"},{"id":"3","label":"Tamper","isCheck":true,"title":"xpack.tamper.tamper","path":"/xpack/tamper"},{"id":"4","label":"GPU","isCheck":true,"title":"xpack.gpu.gpu","path":"/xpack/gpu"},{"id":"5","label":"XSetting","isCheck":true,"title":"xpack.setting.setting","path":"/xpack/setting"},{"id":"6","label":"MonitorDashboard","isCheck":true,"title":"xpack.monitor.name","path":"/xpack/monitor/dashboard"},{"id":"7","label":"XAlertDashboard","isCheck":true,"title":"xpack.alert.alert","path":"/xpack/alert/dashboard"},{"id":"8","label":"Node","isCheck":true,"title":"xpack.node.nodeManagement","path":"/xpack/node"}]}`
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
<template #default>
|
||||
{{ $t('setting.proxyHelper') }}
|
||||
<ul class="-ml-5">
|
||||
<li v-if="isMasterProductPro">{{ $t('setting.proxyHelper1') }}</li>
|
||||
<li v-if="isMasterProductPro">{{ $t('setting.proxyHelper2') }}</li>
|
||||
<li v-if="isMasterProductPro">{{ $t('setting.proxyHelper4') }}</li>
|
||||
<li>{{ $t('setting.proxyHelper1') }}</li>
|
||||
<li>{{ $t('setting.proxyHelper2') }}</li>
|
||||
<li>{{ $t('setting.proxyHelper4') }}</li>
|
||||
<li>{{ $t('setting.proxyHelper3') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
|
@ -217,11 +217,11 @@ const onSubmit = async () => {
|
|||
proxyUrl = '';
|
||||
}
|
||||
await updateXpackSettingByKey('ProxyDocker', proxyUrl);
|
||||
await updateDaemonJson(`${form.proxyType}-proxy`, proxyUrl);
|
||||
emit('search');
|
||||
handleClose();
|
||||
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
||||
} catch (error) {
|
||||
} finally {
|
||||
} catch {
|
||||
loading.value = false;
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue