工单详情修改
This commit is contained in:
@@ -4,11 +4,6 @@
|
||||
import {loadShare} from "@module-federation/runtime";
|
||||
const importMap = {
|
||||
|
||||
"axios": async () => {
|
||||
let pkg = await import("__mf__virtual/workcase__prebuild__axios__prebuild__.js");
|
||||
return pkg;
|
||||
}
|
||||
,
|
||||
"element-plus": async () => {
|
||||
let pkg = await import("__mf__virtual/workcase__prebuild__element_mf_2_plus__prebuild__.js");
|
||||
return pkg;
|
||||
@@ -27,36 +22,6 @@
|
||||
}
|
||||
const usedShared = {
|
||||
|
||||
"axios": {
|
||||
name: "axios",
|
||||
version: "1.13.2",
|
||||
scope: ["default"],
|
||||
loaded: false,
|
||||
from: "workcase",
|
||||
async get () {
|
||||
if (false) {
|
||||
throw new Error(`Shared module '${"axios"}' must be provided by host`);
|
||||
}
|
||||
usedShared["axios"].loaded = true
|
||||
const {"axios": pkgDynamicImport} = importMap
|
||||
const res = await pkgDynamicImport()
|
||||
const exportModule = {...res}
|
||||
// All npm packages pre-built by vite will be converted to esm
|
||||
Object.defineProperty(exportModule, "__esModule", {
|
||||
value: true,
|
||||
enumerable: false
|
||||
})
|
||||
return function () {
|
||||
return exportModule
|
||||
}
|
||||
},
|
||||
shareConfig: {
|
||||
singleton: false,
|
||||
requiredVersion: "^1.13.2",
|
||||
|
||||
}
|
||||
}
|
||||
,
|
||||
"element-plus": {
|
||||
name: "element-plus",
|
||||
version: "2.12.0",
|
||||
|
||||
@@ -81,26 +81,50 @@ declare module 'shared/api/ai' {
|
||||
|
||||
// ============ types模块 ==================
|
||||
declare module 'shared/types' {
|
||||
export type { BaseDTO, BaseVO } from '../../../shared/src/types/base'
|
||||
|
||||
// 基础类型
|
||||
export interface OrderField {
|
||||
field: string
|
||||
order: 'ASC' | 'DESC'
|
||||
}
|
||||
|
||||
export interface BaseDTO {
|
||||
optsn?: string
|
||||
creator?: string
|
||||
updater?: string
|
||||
deptPath?: string
|
||||
remark?: string
|
||||
createTime?: string
|
||||
updateTime?: string
|
||||
deleteTime?: string
|
||||
deleted?: boolean
|
||||
limit?: number
|
||||
startTime?: string
|
||||
endTime?: string
|
||||
orderFields?: OrderField[]
|
||||
}
|
||||
|
||||
export interface BaseVO extends BaseDTO {
|
||||
id?: string
|
||||
}
|
||||
|
||||
// 重新导出 response
|
||||
export type { ResultDomain } from '../../../shared/src/types/response'
|
||||
|
||||
|
||||
// 重新导出 page
|
||||
export type { PageDomain, PageParam, PageRequest } from '../../../shared/src/types/page'
|
||||
|
||||
|
||||
// 重新导出 auth
|
||||
export type { LoginParam, LoginDomain } from '../../../shared/src/types/auth'
|
||||
|
||||
|
||||
// 重新导出 sys
|
||||
export type { SysUserVO, SysConfigVO, TbSysViewDTO } from '../../../shared/src/types/sys'
|
||||
|
||||
|
||||
// 重新导出 file
|
||||
export type { TbSysFileDTO } from '../../../shared/src/types/file'
|
||||
|
||||
|
||||
// 重新导出 ai
|
||||
export type {
|
||||
TbKnowledge,
|
||||
export type {
|
||||
TbKnowledge,
|
||||
TbKnowledgeFile,
|
||||
TbAgent,
|
||||
PromptCard,
|
||||
@@ -118,7 +142,7 @@ declare module 'shared/types' {
|
||||
SSECallbacks,
|
||||
SSETask
|
||||
} from '../../../shared/src/types/ai'
|
||||
|
||||
|
||||
// 重新导出 menu
|
||||
export type { MenuItem, toMenuItem, toMenuItems } from '../../../shared/src/types/menu'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user