diff --git a/src/utils/dict.ts b/src/utils/dict.ts index d1d84242..03e17e75 100644 --- a/src/utils/dict.ts +++ b/src/utils/dict.ts @@ -21,7 +21,7 @@ export interface DictDataType { } export const getDictOptions = (dictType: string) => { - return dictStore.getDictByType(dictType) + return dictStore.getDictByType(dictType) || [] } export const getIntDictOptions = (dictType: string) => { @@ -117,6 +117,7 @@ export enum DICT_TYPE { INFRA_API_ERROR_LOG_PROCESS_STATUS = 'infra_api_error_log_process_status', INFRA_CONFIG_TYPE = 'infra_config_type', INFRA_CODEGEN_TEMPLATE_TYPE = 'infra_codegen_template_type', + INFRA_CODEGEN_FRONT_TYPE = 'infra_codegen_front_type', INFRA_CODEGEN_SCENE = 'infra_codegen_scene', INFRA_FILE_STORAGE = 'infra_file_storage', diff --git a/src/views/infra/codegen/PreviewCode.vue b/src/views/infra/codegen/PreviewCode.vue index 6a81499d..5dd3907b 100644 --- a/src/views/infra/codegen/PreviewCode.vue +++ b/src/views/infra/codegen/PreviewCode.vue @@ -15,7 +15,7 @@ v-loading="loading" element-loading-text="生成文件目录中..." > - + + + + + + + + + @@ -25,6 +38,26 @@ + + + + + + @@ -115,27 +148,6 @@ - - - - - - -