главную страницу перекидывает? Как вернуть на ту страницу, с которой было обновление?
при обновлении страницы имеется ввиду, F5))
конфиг роутера покажи. ну там где это роут объявлен
Оно? import Vue from 'vue' import VueRouter from 'vue-router' import routes from './routes' Vue.use(VueRouter) /* * If not building with SSR mode, you can * directly export the Router instantiation; * * The function below can be async too; either use * async/await or return a Promise which resolves * with the Router instance. */ export default function (/* { store, ssrContext } */) { const Router = new VueRouter({ scrollBehavior: () => ({ x: 0, y: 0 }), routes, // Leave these as they are and change in quasar.conf.js instead! // quasar.conf.js -> build -> vueRouterMode // quasar.conf.js -> build -> publicPath mode: process.env.VUE_ROUTER_MODE, base: process.env.VUE_ROUTER_BASE }) return Router }
вот RouteJs const routes = [ { path: '/', component: () => import('layouts/MainLayout.vue'), children: [ { path: '', component: () => import('pages/Index.vue') }, { path: '/about', component: () => import('pages/About.vue') }, { path: '/premium', component: () => import('pages/Premium.vue') }, { path: '/profile', component: () => import('pages/Profile.vue') }, { path: '/contact', component: () => import('pages/Contact.vue') }, { path: '/auth', component: () => import('pages/Auth.vue') }, { path: '/managment', component: () => import('pages/Managment.vue') }, ] }, // Always leave this as last one, // but you can also remove it { path: '*', component: () => import('pages/Error404.vue') } ] export default routes
Обсуждают сегодня