修改小程序,前端,官网跳转路径
This commit is contained in:
@@ -38,7 +38,10 @@ async function testConnection() {
|
||||
}
|
||||
}
|
||||
|
||||
// 导出连接测试函数,但不自动执行
|
||||
module.exports.testConnection = testConnection;
|
||||
// 先导出sequelize实例
|
||||
const db = sequelize;
|
||||
|
||||
module.exports = sequelize;
|
||||
// 再添加测试连接方法
|
||||
db.testConnection = testConnection;
|
||||
|
||||
module.exports = db;
|
||||
Reference in New Issue
Block a user