13 lines
261 B
JavaScript
13 lines
261 B
JavaScript
Tea.context(function () {
|
|
this.success = function () {
|
|
teaweb.success("保存成功")
|
|
}
|
|
this.onSubmit = function (e) {
|
|
e.preventDefault()
|
|
e.stopPropagation()
|
|
Tea.action("$").post().form(e.target).success(function () {
|
|
Tea.Vue.success()
|
|
})
|
|
}
|
|
})
|