13 Star 0 Fork 11

src-openEuler/aops-hermes

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
005-add-input-text-limit.patch 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
Hu Gang 提交于 2023-12-19 12:36 . fix: add task detail search input limit
From 36d6d8345ad7dc158f842d0cad7b5e9810b6e121 Mon Sep 17 00:00:00 2001
From: Hu gang <18768366022@163.com>
Date: Tue, 19 Dec 2023 11:20:33 +0800
Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9AInaddnput=20box=20text=20limit?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/vendor/ant-design-pro/utils/request.js | 3 +++
src/views/leaks/LeakTaskDetail.vue | 1 +
2 files changed, 4 insertions(+)
diff --git a/src/vendor/ant-design-pro/utils/request.js b/src/vendor/ant-design-pro/utils/request.js
index 661bfd0..11be85a 100644
--- a/src/vendor/ant-design-pro/utils/request.js
+++ b/src/vendor/ant-design-pro/utils/request.js
@@ -170,6 +170,9 @@ request.interceptors.response.use((response) => {
message: response.data.label,
description: response.data.message
});
+ return new Promise((resolve) => {
+ resolve(null);
+ });
// err = new Error(response.data.message);
// err.data = response.data.data;
// err.response = response.data;
diff --git a/src/views/leaks/LeakTaskDetail.vue b/src/views/leaks/LeakTaskDetail.vue
index 81f0a88..56056c9 100644
--- a/src/views/leaks/LeakTaskDetail.vue
+++ b/src/views/leaks/LeakTaskDetail.vue
@@ -105,6 +105,7 @@
<a-input-search
:placeholder="taskType === 'hotpatch remove' ? `按CVE ID搜索` : `按主机名或IP搜索`"
style="width: 200px"
+ maxLength="20"
@search="onSearch"
/>
</a-col>
--
Gitee
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/aops-hermes.git
git@gitee.com:src-openeuler/aops-hermes.git
src-openeuler
aops-hermes
aops-hermes
master

搜索帮助