优化安装程序

This commit is contained in:
刘祥超
2021-11-01 21:09:52 +08:00
parent 249dc6accd
commit ad6ac1aad6
9 changed files with 96 additions and 3 deletions

View File

@@ -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)
})
}
})