支持全局异常和统一返回结果
This commit is contained in:
@@ -229,7 +229,7 @@ export default {
|
||||
streamId: row.stream
|
||||
}
|
||||
}).then((res) => {
|
||||
if (res.data == "success") {
|
||||
if (res.data.code === 0) {
|
||||
that.initData()
|
||||
}
|
||||
}).catch(function (error) {
|
||||
@@ -250,7 +250,7 @@ export default {
|
||||
url: "/api/push/remove_form_gb",
|
||||
data: row
|
||||
}).then((res) => {
|
||||
if (res.data == "success") {
|
||||
if (res.data.code === 0) {
|
||||
that.initData()
|
||||
}
|
||||
}).catch(function (error) {
|
||||
|
||||
Reference in New Issue
Block a user