优化代码/自动去除域名中的http://和https://等,防止误填

This commit is contained in:
GoEdgeLab
2022-07-17 17:12:44 +08:00
parent c6e3c44e71
commit 2ec8188c37
10 changed files with 65 additions and 30 deletions

View File

@@ -20,8 +20,10 @@ Tea.context(function () {
this.success = function () {
this.isOk = true
let f = NotifyReloadSuccess("任务提交成功")
f()
let that = this
teaweb.success("任务提交成功", function () {
window.location = window.location.pathname + "?keyType=" + that.keyType
})
}
this.fail = function (resp) {
@@ -39,5 +41,7 @@ Tea.context(function () {
/**
* 操作类型
*/
this.keyType = "key" // key | prefix
if (this.keyType == null || this.keyType.length == 0) {
this.keyType = "key" // key | prefix
}
})