mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 14:10:27 +08:00
优化
This commit is contained in:
parent
4a5794f60e
commit
e2a99d1439
@ -1,4 +1,4 @@
|
||||
import { Plugin } from "vite";
|
||||
import type { Plugin } from "vite";
|
||||
import { createSvg } from "./svg";
|
||||
import { createTag } from "./tag";
|
||||
import { createEps } from "./eps";
|
||||
|
@ -22,7 +22,7 @@ async function getData(temps?: Eps.Entity[]) {
|
||||
// 本地文件
|
||||
try {
|
||||
list = JSON.parse(readFile(join(DistPath, "eps.json")) || "[]");
|
||||
} catch (err) {
|
||||
} catch (err: any) {
|
||||
error(`[eps] ${join(DistPath, "eps.json")} 文件异常, ${err.message}`);
|
||||
}
|
||||
|
||||
@ -87,7 +87,7 @@ function createJson() {
|
||||
// 创建描述文件
|
||||
async function createDescribe({ list, service }: { list: Eps.Entity[]; service: any }) {
|
||||
// 获取类型
|
||||
function getType({ propertyName, type }) {
|
||||
function getType({ propertyName, type }: any) {
|
||||
for (const map of Entity.mapping) {
|
||||
if (map.custom) {
|
||||
const resType = map.custom({ propertyName, type });
|
||||
|
Loading…
Reference in New Issue
Block a user