Files
EdgeAdmin/web/views/@default/servers/metrics/charts/createPopup.js
2021-07-03 15:44:49 +08:00

15 lines
289 B
JavaScript

Tea.context(function () {
this.type = this.types[0].code
this.typeDefinition = null
this.$delay(function () {
this.changeType()
})
this.changeType = function () {
let that = this
this.typeDefinition = this.types.$find(function (k, v) {
return v.code == that.type
})
}
})