Projects
Eulaceura:Factory
aops-hermes
_service:obs_scm:011-fix-prompt-word.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:011-fix-prompt-word.patch of Package aops-hermes
From f3f7580d187358748c73522b8580928389c0d836 Mon Sep 17 00:00:00 2001 From: hugang <18768366022@163.com> Date: Tue, 11 Jun 2024 19:48:09 +0800 Subject: [PATCH] Fixed the issue of incorrect password prompt when hot modifying password --- src/vendor/ant-design-pro/utils/request.js | 7 +------ src/views/leaks/components/CreateRepairTaskDrawer.vue | 6 +++--- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/vendor/ant-design-pro/utils/request.js b/src/vendor/ant-design-pro/utils/request.js index a09fe31..db07b57 100644 --- a/src/vendor/ant-design-pro/utils/request.js +++ b/src/vendor/ant-design-pro/utils/request.js @@ -177,16 +177,11 @@ request.interceptors.response.use((response) => { description: response.data.message }); break; - case '1000': + default: err = new Error(response.data.message); err.data = response.data.data; err.response = response.data; throw err; - default: - notification.error({ - message: response.data.label, - description: response.data.message - }); } } if (response.headers['content-type'] === 'application/octet-stream') { diff --git a/src/views/leaks/components/CreateRepairTaskDrawer.vue b/src/views/leaks/components/CreateRepairTaskDrawer.vue index a9023da..51645d5 100644 --- a/src/views/leaks/components/CreateRepairTaskDrawer.vue +++ b/src/views/leaks/components/CreateRepairTaskDrawer.vue @@ -246,7 +246,7 @@ const taskTypsbutton = { const taskTypsEnum = { 'cve fix': 'cve修复', 'repo set': 'repo设置', - 'cve rollback': '生成回滚任务(当前仅支持热补丁回滚)', + 'cve rollback': '回滚任务', 'hotpatch remove': '热补丁移除' }; const hostListTypes = ['byLoading', 'bySelection', 'byOneHost']; @@ -916,7 +916,7 @@ export default { info: cveRoobackInfo }; if (cveRoobackInfo.length === 0) { - this.$message.info('请至少选择一个cve下的一台主机进行回滚!'); + this.$message.info('请至少选择一个cve下的一台主机进行移除!'); this.submitLoading = false; this.submitAndExecuteLoading = false; break; @@ -928,7 +928,7 @@ export default { this.handleExcuteASAP(res.data.task_id, res.data); } else { this.visible = false; - this.handleGenerateSuccess(res.data, 'CVE回滚', 'normal'); + this.handleGenerateSuccess(res.data, '热补丁移除', 'normal'); } }) .catch((err) => { -- 2.43.0.windows.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2