Commit 3e6b8fe2 authored by 黄卓's avatar 黄卓

完成入仓后,选择不打印入仓单,应该返回前一个订单列表(我的订单列表或全部订单列表点击入仓操作的前一个页面)

http://zentao.jdshangmen.com/bug-view-451.html
parent 64a10719
...@@ -32,7 +32,11 @@ export default { ...@@ -32,7 +32,11 @@ export default {
// 关闭指定tab页签 // 关闭指定tab页签
closePage(obj) { closePage(obj) {
if (obj === undefined) { if (obj === undefined) {
return store.dispatch('tagsView/delView', router.currentRoute).then(({ lastPath }) => { return store.dispatch('tagsView/delView', router.currentRoute).then(({ visitedViews }) => {
let lastPath = '/'
if (visitedViews.length > 0){
lastPath = visitedViews[visitedViews.length - 1]
}
return router.push(lastPath || '/'); return router.push(lastPath || '/');
}); });
} }
......
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