Skip to content

Commit f5c174b

Browse files
authored
fix: Fix the problem that the agent remembers the password invalid (#8334)
1 parent b41afc1 commit f5c174b

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

  • core/init/migration/migrations
  • frontend/src/views/setting/panel/proxy

core/init/migration/migrations/init.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ var InitSetting = &gormigrate.Migration{
9191
if err := tx.Create(&model.Setting{Key: "ProxyPasswd", Value: ""}).Error; err != nil {
9292
return err
9393
}
94-
if err := tx.Create(&model.Setting{Key: "PrsoxyPasswdKeep", Value: ""}).Error; err != nil {
94+
if err := tx.Create(&model.Setting{Key: "ProxyPasswdKeep", Value: ""}).Error; err != nil {
9595
return err
9696
}
9797
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"}]}`

frontend/src/views/setting/panel/proxy/index.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<template #default>
66
{{ $t('setting.proxyHelper') }}
77
<ul class="-ml-5">
8-
<li v-if="isMasterProductPro">{{ $t('setting.proxyHelper1') }}</li>
9-
<li v-if="isMasterProductPro">{{ $t('setting.proxyHelper2') }}</li>
10-
<li v-if="isMasterProductPro">{{ $t('setting.proxyHelper4') }}</li>
8+
<li>{{ $t('setting.proxyHelper1') }}</li>
9+
<li>{{ $t('setting.proxyHelper2') }}</li>
10+
<li>{{ $t('setting.proxyHelper4') }}</li>
1111
<li>{{ $t('setting.proxyHelper3') }}</li>
1212
</ul>
1313
</template>
@@ -217,11 +217,11 @@ const onSubmit = async () => {
217217
proxyUrl = '';
218218
}
219219
await updateXpackSettingByKey('ProxyDocker', proxyUrl);
220+
await updateDaemonJson(`${form.proxyType}-proxy`, proxyUrl);
220221
emit('search');
221222
handleClose();
222223
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
223-
} catch (error) {
224-
} finally {
224+
} catch {
225225
loading.value = false;
226226
}
227227
};

0 commit comments

Comments
 (0)