route.js 183 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 const STORE_PATH = 'order/orderDetail'; export default { beforeRouteEnter(to, from, next) { next(vm => { vm.$store.commit(`${STORE_PATH}/setFrom`, from); }); }, };