mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-05-20 04:05:19 +08:00
支持更多的分组全局设置功能
This commit is contained in:
26
web/views/@default/servers/groups/group/settings/cache/preheat.js
vendored
Normal file
26
web/views/@default/servers/groups/group/settings/cache/preheat.js
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
Tea.context(function () {
|
||||
this.isRequesting = false
|
||||
this.isOk = false
|
||||
this.message = ""
|
||||
this.results = []
|
||||
|
||||
this.before = function () {
|
||||
this.isRequesting = true
|
||||
this.isOk = false
|
||||
this.message = ""
|
||||
this.results = []
|
||||
}
|
||||
|
||||
this.success = function (resp) {
|
||||
this.isOk = true
|
||||
this.results = resp.data.results
|
||||
}
|
||||
|
||||
this.fail = function (resp) {
|
||||
this.message = resp.message
|
||||
}
|
||||
|
||||
this.done = function () {
|
||||
this.isRequesting = false
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user