diff --git a/src/modules/system/plugins/PluginDetail.vue b/src/modules/system/plugins/PluginDetail.vue index e493ad7b..7dc4fde2 100644 --- a/src/modules/system/plugins/PluginDetail.vue +++ b/src/modules/system/plugins/PluginDetail.vue @@ -9,11 +9,7 @@ import { rbacAnnotations } from "@/constants/annotations"; import { usePluginLifeCycle } from "./composables/use-plugin"; const plugin = inject>("plugin", ref({} as Plugin)); -const { changeStatus } = usePluginLifeCycle(plugin); - -const isStarted = computed(() => { - return plugin.value.status?.phase === "STARTED" && plugin.value.spec.enabled; -}); +const { changeStatus, isStarted } = usePluginLifeCycle(plugin); // TODO 临时解决方案 interface RoleTemplateGroup {