Tea.context(function () {
this.tab = "domainMatch"
this.selectTab = function (tab) {
this.tab = tab
}
this.success = function () {
teaweb.success("保存成功")
}
/**
* 域名不匹配动作
*/
this.domainMismatchAction = "page"
this.domainMismatchActionPageOptions = {
statusCode: 404,
contentHTML: `
404 not found
找不到您要访问的页面.
Sorry, page not found.
`
}
if (this.globalConfig.httpAll.domainMismatchAction != null) {
this.domainMismatchAction = this.globalConfig.httpAll.domainMismatchAction.code
if (this.domainMismatchAction == "page") {
this.domainMismatchActionPageOptions = this.globalConfig.httpAll.domainMismatchAction.options;
}
}
})