From b5a4a5446eaf74ebbf02d515f216e33758520654 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Thu, 3 Nov 2022 17:01:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20vue3=20=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/codegen/vue3/api/api.ts.vm | 4 +--- .../src/main/resources/codegen/vue3/views/index.vue.vm | 6 +++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/api/api.ts.vm b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/api/api.ts.vm index 7d13b5dec..d1099ecbf 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/api/api.ts.vm +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/api/api.ts.vm @@ -1,8 +1,6 @@ -import { useAxios } from '@/hooks/web/useAxios' +import request from '@/config/axios' import { ${simpleClassName}VO, ${simpleClassName}PageReqVO, ${simpleClassName}ExcelReqVO } from './types' -const request = useAxios() - #set ($baseURL = "/${table.moduleName}/${simpleClassName_strikeCase}") // 查询${table.classComment}列表 export const get${simpleClassName}PageApi = async (params: ${simpleClassName}PageReqVO) => { diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm index 7a050b8bb..0728a405a 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/resources/codegen/vue3/views/index.vue.vm @@ -6,9 +6,9 @@ import { DICT_TYPE } from '@/utils/dict' import { useTable } from '@/hooks/web/useTable' import { useI18n } from '@/hooks/web/useI18n' import { FormExpose } from '@/components/Form' -import type { ${simpleClassName}VO } from '@/api/${table.moduleName}/${simpleClassName}/types' -import { rules, allSchemas } from './${simpleClassName}.data' -import * as ${simpleClassName}Api from '@/api/${table.moduleName}/${simpleClassName}' +import type { ${simpleClassName}VO } from '@/api/${table.moduleName}/${classNameVar}/types' +import { rules, allSchemas } from './${classNameVar}.data' +import * as ${simpleClassName}Api from '@/api/${table.moduleName}/${classNameVar}' const { t } = useI18n() // 国际化 // ========== 列表相关 ==========