diff --git a/admin/src/App.vue b/admin/src/App.vue
index 166b549..e0584a8 100644
--- a/admin/src/App.vue
+++ b/admin/src/App.vue
@@ -30,8 +30,13 @@
@click="searchInputDivShowHidden">
-
+
@@ -369,6 +374,7 @@
//搜索输入框显示和隐藏
searchInputDivShowHidden() {
this.showSearchInput = !this.showSearchInput;
+ this.searchInputText = '';
},
//退出登录按钮事件
logoutBtnClick() {
@@ -395,6 +401,19 @@
//搜索框输入
searchInputHandle() {
this.$EventBus.$emit(glob.eventNames.globSearchEventName, this.searchInputText);
+ },
+ //输入框失去焦点
+ searchInputBlur() {
+ this.searchInputDivShowHidden();
+ }
+ },
+ directives: {
+ focus: {
+ update: function (el, {value}) {
+ if (value) {
+ el.getElementsByTagName('input')[0].focus();
+ }
+ }
}
}
}
diff --git a/udf-api/udf-api-server/src/main/resources/templates/common.html b/udf-api/udf-api-server/src/main/resources/templates/common.html
index d65b3c3..b509d87 100644
--- a/udf-api/udf-api-server/src/main/resources/templates/common.html
+++ b/udf-api/udf-api-server/src/main/resources/templates/common.html
@@ -332,7 +332,7 @@