mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-09 00:20:26 +08:00
15 lines
289 B
JavaScript
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
|
|
})
|
|
}
|
|
}) |