9 lines
191 B
JavaScript
9 lines
191 B
JavaScript
Tea.context(function () {
|
|
if (typeof this.params == "undefined" || this.params == null) {
|
|
this.params = {host: "", port: 22}
|
|
}
|
|
if (this.params.port <= 0) {
|
|
this.params.port = 22
|
|
}
|
|
})
|