Skip to content

Commit

Permalink
refactor(north group): refactor gewu plugin name and its display
Browse files Browse the repository at this point in the history
  • Loading branch information
orangegzx authored and ysfscream committed Sep 4, 2023
1 parent c68bc13 commit de8ae20
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/composables/config/useDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ export const useDriverInfo = (node?: Record<string, any>) => {

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 (
Expand Down

0 comments on commit de8ae20

Please sign in to comment.