fix: vue3 代码生成错误

This commit is contained in:
xingyu4j 2022-11-03 17:01:37 +08:00
parent 3eb11e2658
commit b5a4a5446e
2 changed files with 4 additions and 6 deletions

View File

@ -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) => {

View File

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