Commit ff4a832d by yuananting

fix:删除试卷跳转

parent b19f771d
......@@ -2,7 +2,7 @@
* @Author: yuananting
* @Date: 2021-03-27 16:15:13
* @LastEditors: yuananting
* @LastEditTime: 2021-04-12 19:33:44
* @LastEditTime: 2021-04-12 19:58:44
* @Description: 助学工具-新建/复制/编辑试卷
* @Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -324,7 +324,13 @@ class OperatePaper extends Component {
message.success(
currentOperate === "new" ? "新建成功" : "复制成功"
);
window.RCHistory.push({
pathname: `/paper-manage-index?categoryId=${categoryId}`,
});
Bus.trigger("queryPaperPageList", categoryId, selectQuestionList.length);
Bus.trigger("queryCategoryTree", "remain");
}
}).catch((e)=> {
window.RCHistory.push({
pathname: `/paper-manage-index?categoryId=${categoryId}`,
});
......@@ -338,11 +344,14 @@ class OperatePaper extends Component {
}).then((res) => {
if (res.success) {
message.success("编辑成功");
window.RCHistory.push({
pathname: `/paper-manage-index?categoryId=${categoryId}`,
});
Bus.trigger("queryPaperPageList", categoryId, selectQuestionList.length);
}
}).catch((e)=> {
window.RCHistory.push({
pathname: `/paper-manage-index?categoryId=${getParameterByName(
"categoryId"
)}`,
pathname: `/paper-manage-index?categoryId=${categoryId}`,
});
Bus.trigger("queryPaperPageList", categoryId, selectQuestionList.length);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment