mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-22 09:56:34 +08:00
安装过程中可以选择自动在本机安装MySQL
This commit is contained in:
@@ -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()
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user