mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-17 06:00:25 +08:00
安装时自动检查服务器上安装的MySQL
This commit is contained in:
@@ -34,6 +34,7 @@ Tea.context(function () {
|
||||
|
||||
this.apiSuccess = function (resp) {
|
||||
this.step = this.STEP_DB
|
||||
this.detectDB()
|
||||
this.apiNodeInfo = resp.data.apiNode
|
||||
|
||||
if (this.apiNodeMode == "new") {
|
||||
@@ -56,7 +57,18 @@ Tea.context(function () {
|
||||
|
||||
// 数据库
|
||||
this.dbInfo = {}
|
||||
this.localDB = {"host": "", "port": "", "username": "", "port": ""}
|
||||
this.localDBHost = ""
|
||||
this.dbRequesting = false
|
||||
|
||||
this.detectDB = function () {
|
||||
this.$post(".detectDB")
|
||||
.success(function (resp) {
|
||||
this.localDB = resp.data.localDB
|
||||
this.localDBHost = this.localDB.host
|
||||
})
|
||||
}
|
||||
|
||||
this.dbSubmit = function () {
|
||||
this.dbRequesting = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user