/
home
/
henzagold
/
site
/
.nuxt
/
File Upload :
llllll
Current File: //home/henzagold/site/.nuxt/router.js
import Vue from 'vue' import Router from 'vue-router' import { normalizeURL, decode } from 'ufo' import { interopDefault } from './utils' import scrollBehavior from './router.scrollBehavior.js' const _cb6aac54 = () => interopDefault(import('../pages/shop/index.vue' /* webpackChunkName: "pages/shop/index" */)) const _3cc2d649 = () => interopDefault(import('../pages/shop/tag/_id.vue' /* webpackChunkName: "pages/shop/tag/_id" */)) const _544a1be1 = () => interopDefault(import('../pages/shop/_category.vue' /* webpackChunkName: "pages/shop/_category" */)) const _0cf8f801 = () => interopDefault(import('../pages/product/_title/_id.vue' /* webpackChunkName: "pages/product/_title/_id" */)) const _5e4766a0 = () => interopDefault(import('../pages/shop/_title/_id.vue' /* webpackChunkName: "pages/shop/_title/_id" */)) const _00fac805 = () => interopDefault(import('../pages/index.vue' /* webpackChunkName: "pages/index" */)) const emptyFn = () => {} Vue.use(Router) export const routerOptions = { mode: 'history', base: '/', linkActiveClass: 'nuxt-link-active', linkExactActiveClass: 'nuxt-link-exact-active', scrollBehavior, routes: [{ path: "/shop", component: _cb6aac54, name: "shop" }, { path: "/shop/tag/:id?", component: _3cc2d649, name: "shop-tag-id" }, { path: "/shop/:category", component: _544a1be1, name: "shop-category" }, { path: "/product/:title?/:id?", component: _0cf8f801, name: "product-title-id" }, { path: "/shop/:title/:id?", component: _5e4766a0, name: "shop-title-id" }, { path: "/", component: _00fac805, name: "index" }], fallback: false } export function createRouter (ssrContext, config) { const base = (config._app && config._app.basePath) || routerOptions.base const router = new Router({ ...routerOptions, base }) // TODO: remove in Nuxt 3 const originalPush = router.push router.push = function push (location, onComplete = emptyFn, onAbort) { return originalPush.call(this, location, onComplete, onAbort) } const resolve = router.resolve.bind(router) router.resolve = (to, current, append) => { if (typeof to === 'string') { to = normalizeURL(to) } return resolve(to, current, append) } return router }
Copyright ©2k19 -
Hexid
|
Tex7ure