From cc244c6af6e632ff88eb99cbf52ad309786606a1 Mon Sep 17 00:00:00 2001
From: zhaojisen <1301338853@qq.com>
Date: Wed, 12 Jun 2024 19:11:10 +0800
Subject: [PATCH] fix: Fixed the issue that when creating a device in the
platform list, the new device needs to refresh before it can be displayed
---
src/layout/components/GenericListTable/index.vue | 7 +------
src/views/assets/Platform/PlatformList.vue | 5 ++++-
2 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/src/layout/components/GenericListTable/index.vue b/src/layout/components/GenericListTable/index.vue
index 34666225c..d7c360363 100644
--- a/src/layout/components/GenericListTable/index.vue
+++ b/src/layout/components/GenericListTable/index.vue
@@ -10,10 +10,6 @@ export default {
components: {
ListTable
},
- computed: {
- },
- created() {
- },
methods: {
reloadTable() {
this.$refs.ListTable.reloadTable()
@@ -22,9 +18,8 @@ export default {
}
-
diff --git a/src/views/assets/Platform/PlatformList.vue b/src/views/assets/Platform/PlatformList.vue
index 253e2af12..8b27f3a22 100644
--- a/src/views/assets/Platform/PlatformList.vue
+++ b/src/views/assets/Platform/PlatformList.vue
@@ -7,7 +7,7 @@
@tab-click="changeMoreCreates"
>
-
+
@@ -124,6 +124,9 @@ export default {
return `/api/v1/assets/platforms/?category=${this.tab.activeMenu}`
}
},
+ activated() {
+ this.$refs.genericListTable.reloadTable()
+ },
async mounted() {
try {
await this.setCategoriesTab()