mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 12:20:28 +08:00
15 lines
413 B
JavaScript
15 lines
413 B
JavaScript
Tea.context(function () {
|
|
this.typeDescription = ""
|
|
|
|
let that = this
|
|
this.types.forEach(function (v) {
|
|
if (v.code == that.provider.type) {
|
|
that.typeDescription = v.description
|
|
}
|
|
})
|
|
|
|
// DNSPod
|
|
if (this.provider.type == "dnspod" && this.provider.params != null && (this.provider.params.apiType == null || this.provider.params.apiType.length == 0)) {
|
|
this.provider.params.apiType = "dnsPodToken"
|
|
}
|
|
}) |