mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-11 18:30:25 +08:00
优化安装程序
This commit is contained in:
@@ -7,6 +7,10 @@ Tea.context(function () {
|
||||
|
||||
this.step = this.STEP_INTRO
|
||||
|
||||
this.$delay(function () {
|
||||
this.loadStatusText()
|
||||
})
|
||||
|
||||
// 介绍
|
||||
this.goIntroNext = function () {
|
||||
this.step = this.STEP_API
|
||||
@@ -114,4 +118,24 @@ Tea.context(function () {
|
||||
window.location = "/"
|
||||
})
|
||||
}
|
||||
|
||||
this.statusText = ""
|
||||
this.loadStatusText = function () {
|
||||
if (!this.isInstalling) {
|
||||
this.statusText = ""
|
||||
this.$delay(function () {
|
||||
this.loadStatusText()
|
||||
}, 1000)
|
||||
return
|
||||
}
|
||||
this.$post(".status")
|
||||
.success(function (resp) {
|
||||
this.statusText = resp.data.statusText
|
||||
})
|
||||
.done(function () {
|
||||
this.$delay(function () {
|
||||
this.loadStatusText()
|
||||
}, 1000)
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user