-
Notifications
You must be signed in to change notification settings - Fork 3.2k
fix: Fix the problem that the agent remembers the password invalid #8334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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; | ||
| } | ||
| }; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are no significant irregularities or issues with the code changes. However, there is an issue with how error handling is structured: Issue: Optimization Suggestions: } catch (error) {
console.error("Error updating Docker Proxy settings:", error); // Log Error for debugging purposes
}This not only helps in capturing and logging errors but also prevents silent failures which could make troubleshooting more difficult. |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code snippet is mostly correct, but there seems to be a typo in the value being created for
PrsoxyPasswdKeep. The first character of " PrsoxyPasswdKeep" should likely be removed ("P"). Here's the corrected line:This change ensures that the key matches what would be expected in the database schema. No other issues have been identified based on the information provided.