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() // 国际化 // ========== 列表相关 ==========