前端代码修改思路
1、思路:
service中用变量中缓存选择的study card的id,state:{main,attach},并定义函数用来获取当前study的state和info等,定义可能改变state的action函数,监听action更改对应state
click card将study_id,state->main传给study-page,service判断并更新state,study-page调用service监听当前study的state传给study-editor
service中用变量中缓存选择的study card的id,state:{main,attach},并定义函数用来获取当前study的state和info等,定义可能改变state的action函数,监听action更改对应state
click card将study_id,state->main传给study-page,service判断并更新state,study-page调用service监听当前study的state传给study-editor