mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-26 20:40:24 +08:00
16 lines
334 B
JavaScript
16 lines
334 B
JavaScript
|
|
Tea.context(function () {
|
||
|
|
this.selectedProvider = null
|
||
|
|
this.changeProvider = function () {
|
||
|
|
if (this.providerCode.length == 0) {
|
||
|
|
this.selectedProvider = null
|
||
|
|
return
|
||
|
|
}
|
||
|
|
|
||
|
|
let that = this
|
||
|
|
this.selectedProvider = this.providers.$find(function (k, v) {
|
||
|
|
return v.code == that.providerCode
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
this.changeProvider()
|
||
|
|
})
|