diff --git a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-card-list.vue.vm b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-card-list.vue.vm
index 9c3aea63..6a1a7da6 100644
--- a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-card-list.vue.vm
+++ b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-card-list.vue.vm
@@ -170,8 +170,8 @@
// 调用删除接口
await delete${vue.featureEntity}(id);
Message.success('删除成功');
- // 重新加载数据
- fetchCardData();
+ // 重新加载
+ reload();
} catch (e) {
} finally {
setLoading(false);
@@ -182,6 +182,7 @@
// 重新加载
const reload = () => {
+ // 重新加载数据
fetchCardData();
};
diff --git a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-table.vue.vm b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-table.vue.vm
index 361b2185..92436682 100644
--- a/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-table.vue.vm
+++ b/orion-visor-framework/orion-visor-spring-boot-starter-mybatis/src/main/resources/templates/orion-vue-views-components-table.vue.vm
@@ -189,8 +189,8 @@
await batchDelete${vue.featureEntity}(selectedKeys.value);
Message.success(`成功删除 ${selectedKeys.value.length} 条数据`);
selectedKeys.value = [];
- // 重新加载数据
- fetchTableData();
+ // 重新加载
+ reload();
} catch (e) {
} finally {
setLoading(false);
@@ -207,8 +207,8 @@
// 调用删除接口
await delete${vue.featureEntity}(id);
Message.success('删除成功');
- // 重新加载数据
- fetchTableData();
+ // 重新加载
+ reload();
} catch (e) {
} finally {
setLoading(false);
@@ -217,6 +217,7 @@
// 重新加载
const reload = () => {
+ // 重新加载数据
fetchTableData();
};
diff --git a/orion-visor-ui/src/components/asset/host-group/tree-selector/index.vue b/orion-visor-ui/src/components/asset/host-group/tree-selector/index.vue
index f7506c09..b51c3e8c 100644
--- a/orion-visor-ui/src/components/asset/host-group/tree-selector/index.vue
+++ b/orion-visor-ui/src/components/asset/host-group/tree-selector/index.vue
@@ -16,7 +16,7 @@
diff --git a/orion-visor-ui/src/components/asset/host-identity/selector/index.vue b/orion-visor-ui/src/components/asset/host-identity/selector/index.vue
index 50aff252..2b9a85b9 100644
--- a/orion-visor-ui/src/components/asset/host-identity/selector/index.vue
+++ b/orion-visor-ui/src/components/asset/host-identity/selector/index.vue
@@ -29,7 +29,7 @@
diff --git a/orion-visor-ui/src/components/asset/host-key/selector/index.vue b/orion-visor-ui/src/components/asset/host-key/selector/index.vue
index dd1f7e23..af324d7f 100644
--- a/orion-visor-ui/src/components/asset/host-key/selector/index.vue
+++ b/orion-visor-ui/src/components/asset/host-key/selector/index.vue
@@ -14,7 +14,7 @@