|
|
@ -17,14 +17,16 @@ |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import { useI18n } from 'vue-i18n' |
|
|
|
import type { IJsonItem } from '../types' |
|
|
|
import type { IJsonItem } from '../types' |
|
|
|
|
|
|
|
|
|
|
|
export function useDeployMode(span = 24): IJsonItem { |
|
|
|
export function useDeployMode(span = 24, showClient = true): IJsonItem { |
|
|
|
const { t } = useI18n() |
|
|
|
const { t } = useI18n() |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
type: 'radio', |
|
|
|
type: 'radio', |
|
|
|
field: 'deployMode', |
|
|
|
field: 'deployMode', |
|
|
|
name: t('project.node.deploy_mode'), |
|
|
|
name: t('project.node.deploy_mode'), |
|
|
|
options: DEPLOY_MODES, |
|
|
|
options: DEPLOY_MODES.filter((option) => |
|
|
|
|
|
|
|
option.value === 'client' ? showClient : true |
|
|
|
|
|
|
|
), |
|
|
|
span |
|
|
|
span |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|