From de8ae20f151f117cbc6d338b421a621fe79ed0cb Mon Sep 17 00:00:00 2001 From: orangegzx Date: Mon, 4 Sep 2023 15:07:52 +0800 Subject: [PATCH] refactor(north group): refactor gewu plugin name and its display --- src/composables/config/useDriver.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/composables/config/useDriver.ts b/src/composables/config/useDriver.ts index 2e0b0cc1..5003894e 100644 --- a/src/composables/config/useDriver.ts +++ b/src/composables/config/useDriver.ts @@ -262,7 +262,11 @@ export const useDriverInfo = (node?: Record) => { const isMQTTPugin = computed(() => nodePlugin.value && nodePlugin.value.toLocaleLowerCase() === 'mqtt') - const isGewuPugin = computed(() => nodePlugin.value && nodePlugin.value.toLocaleLowerCase() === 'gewu') + const isGewuPugin = computed(() => { + const nodePluginName = nodePlugin.value?.toLocaleLowerCase().replace(/\s/g, '') + const pluginNames = ['格物dmp-v1', 'gewu'] + return pluginNames.includes(nodePluginName) + }) const isSupportBatchSub = computed(() => { return (