增加恢复模式

This commit is contained in:
GoEdgeLab
2021-07-20 17:15:17 +08:00
parent 320b325496
commit 064bf2016b
34 changed files with 948 additions and 285 deletions

View File

@@ -0,0 +1,42 @@
Tea.context(function () {
this.STEP_INTRO = "intro"
this.STEP_NEW_API = "newAPI"
this.STEP_API_LIST = "apiList"
this.STEP_FINISH = "finish"
this.step = this.STEP_INTRO
// 介绍
this.goIntroNext = function () {
this.step = this.STEP_NEW_API
}
// 新API地址
this.apiNodeInfo = {}
this.apiRequesting = false
this.goBackIntro = function () {
this.step = this.STEP_INTRO
}
this.apiSubmit = function () {
this.apiRequesting = true
}
this.apiDone = function () {
this.apiRequesting = false
}
this.apiSuccess = function (resp) {
this.step = this.STEP_API_LIST
this.apiNodeInfo = resp.data.apiNode
}
// 修改API主机地址
this.goBackAPI = function () {
this.step = this.STEP_NEW_API
}
this.updateHostsSuccess = function () {
this.step = this.STEP_FINISH
}
})