安装过程中可以选择自动在本机安装MySQL

This commit is contained in:
刘祥超
2023-03-11 18:52:40 +08:00
parent 2546676f6a
commit 7e85555ba7
22 changed files with 1287 additions and 164 deletions

View File

@@ -57,7 +57,7 @@ Tea.context(function () {
// 数据库
this.dbInfo = {}
this.localDB = {"host": "", "port": "", "username": "", "port": "", "isLocal": true}
this.localDB = {"host": "", "port": "", "username": "", "port": "", "isLocal": true, "canInstall": false}
this.localDBHost = ""
this.dbRequesting = false
@@ -172,4 +172,17 @@ Tea.context(function () {
}, 1000)
})
}
/**
* MySQL
*/
this.installMySQL = function () {
let that = this
teaweb.popup("/setup/mysql/installPopup", {
height: "28em",
onClose: function () {
that.detectDB()
}
})
}
})