添加分页功能、打包优化、ts编译优化

This commit is contained in:
周炽键
2021-07-23 21:34:47 +08:00
parent fd85fcef74
commit 6a1f9a3f6b
15 changed files with 3340 additions and 141 deletions

12
app.js
View File

@@ -42,6 +42,18 @@ Object.defineProperty(express.response,'detail',{
configurable:false
})
Object.defineProperty(express.response,'success',{
value:function (msg,resObj = {}) {
resObj.message = msg
this.status(200).send(resObj)
},
enumerable:false,
writable:false,
configurable:false
})
/**
* 连接数据库
*/