fix(接口定义) 修复切换页面问题
This commit is contained in:
parent
3a6311692b
commit
457d8624fb
|
@ -228,6 +228,9 @@ export default {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
init() {
|
init() {
|
||||||
|
if (Object.prototype.toString.call(this.request).match(/\[object (\w+)\]/)[1].toLowerCase() !== 'object') {
|
||||||
|
this.request = JSON.parse(this.request);
|
||||||
|
}
|
||||||
if (!this.request.body) {
|
if (!this.request.body) {
|
||||||
this.request.body = new Body();
|
this.request.body = new Body();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue