如下,indexAction继承的addAction貌似不起作用,求大神
indexAction(){
this.addAction();
return this.display();
}
* addAction(){
let model = this.model("test");
let status = yield model.add({name: "xxx"});
return status;
}
扫码关注w3ctech微信公众号
共收到5条回复