后端搭建起来

This commit is contained in:
aixianling
2022-12-30 16:03:32 +08:00
parent cf5f60a049
commit b8ac23dcfd
8 changed files with 85 additions and 38 deletions

View File

@@ -1,6 +1,7 @@
module.exports = app => {
app.beforeStart(async () => {
const mysqlConfig = await app.configCenter.fetch("mysql")
app.database = app.mysql.createInstance(mysqlConfig)
})
module.exports = () => {
// app.beforeStart(async () => {
// console.log(app.config)
// const mysqlConfig = await app.configCenter.fetch("mysql")
// app.database = app.mysql.createInstance(mysqlConfig)
// })
}