1122
This commit is contained in:
1
cdTMP/src/config/column.js
Normal file
1
cdTMP/src/config/column.js
Normal file
@@ -0,0 +1 @@
|
||||
export default {}
|
||||
25
cdTMP/src/config/crud.js
Normal file
25
cdTMP/src/config/crud.js
Normal file
@@ -0,0 +1,25 @@
|
||||
export default {
|
||||
// 响应返回解析
|
||||
parseResponseData: (res) => {
|
||||
return res?.data?.items
|
||||
? // 分页响应字段结构定义
|
||||
{
|
||||
rows: res?.data?.items ?? [], // 分析行数据字段结构
|
||||
pageInfo: res?.data?.pageInfo, // 分析总数字段结构
|
||||
message: res?.message, // 分析描述字段结构
|
||||
code: res?.code // 分析状态字段结构
|
||||
}
|
||||
: // 无分页响应字段结构定义
|
||||
{
|
||||
rows: res?.data ?? [], // 分析行数据字段结构
|
||||
message: res?.message, // 分析描述字段结构
|
||||
code: res?.code // 分析状态字段结构
|
||||
}
|
||||
},
|
||||
|
||||
// 请求字段结构定义
|
||||
request: {
|
||||
page: "page", //规定当前分页字段
|
||||
pageSize: "pageSize" //规定一页条数字段
|
||||
}
|
||||
}
|
||||
15
cdTMP/src/config/upload.js
Normal file
15
cdTMP/src/config/upload.js
Normal file
@@ -0,0 +1,15 @@
|
||||
export default {
|
||||
storage: {
|
||||
LOCAL: "http://127.0.0.1:8000",
|
||||
OSS: "",
|
||||
COS: "",
|
||||
QINIU: ""
|
||||
},
|
||||
|
||||
storageMode: {
|
||||
1: "LOCAL",
|
||||
2: "OSS",
|
||||
3: "QINIU",
|
||||
4: "COS"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user