Vue路由器不在Firefox上渲染组件

时间:2018-05-02 08:43:51

标签: vue.js vue-component vue-router

const routes = [
    { path: '/', component: ScooterList },
    { path: '/step-2', component: ExtrasList, beforeEnter: PaymentMiddleware.scooterMustSelected },
    { path: '/step-3', component: Payment, beforeEnter: PaymentMiddleware.scooterMustSelected },
]
const router = new VueRouter({
    routes // forma corta para routes: routes
})

点击按钮

store.commit('setSelectedScooter', scooter)
this.$router.push('/step-2')

路由器推送适用于所有资源管理器,但不适用于Firefox。路由器添加了“步骤2”'网址很好,但组件没有改变,任何想法?

修改

https://codesandbox.io/s/n9mynv8rv4

0 个答案:

没有答案