router.js 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import { normalizeURL, decode } from 'ufo'
  4. import { interopDefault } from './utils'
  5. import scrollBehavior from './router.scrollBehavior.js'
  6. const _82724b94 = () => interopDefault(import('..\\pages\\about\\index.vue' /* webpackChunkName: "pages/about/index" */))
  7. const _39825c08 = () => interopDefault(import('..\\pages\\brand\\index.vue' /* webpackChunkName: "pages/brand/index" */))
  8. const _064d2cbe = () => interopDefault(import('..\\pages\\case\\index.vue' /* webpackChunkName: "pages/case/index" */))
  9. const _14ea7583 = () => interopDefault(import('..\\pages\\contact\\index.vue' /* webpackChunkName: "pages/contact/index" */))
  10. const _7b589bc8 = () => interopDefault(import('..\\pages\\cooperation\\index.vue' /* webpackChunkName: "pages/cooperation/index" */))
  11. const _f2fd73c4 = () => interopDefault(import('..\\pages\\news\\index.vue' /* webpackChunkName: "pages/news/index" */))
  12. const _1cee7d17 = () => interopDefault(import('..\\pages\\brand\\detail.vue' /* webpackChunkName: "pages/brand/detail" */))
  13. const _3f7353a3 = () => interopDefault(import('..\\pages\\brand\\ross.vue' /* webpackChunkName: "pages/brand/ross" */))
  14. const _3eeac95d = () => interopDefault(import('..\\pages\\contact\\consult.vue' /* webpackChunkName: "pages/contact/consult" */))
  15. const _20936d2e = () => interopDefault(import('..\\pages\\contact\\job.vue' /* webpackChunkName: "pages/contact/job" */))
  16. const _da0705dc = () => interopDefault(import('..\\pages\\contact\\join-us.vue' /* webpackChunkName: "pages/contact/join-us" */))
  17. const _3c0ae596 = () => interopDefault(import('..\\pages\\news\\detail.vue' /* webpackChunkName: "pages/news/detail" */))
  18. const _750ce5f9 = () => interopDefault(import('..\\pages\\product\\binary-premium.vue' /* webpackChunkName: "pages/product/binary-premium" */))
  19. const _355b1c76 = () => interopDefault(import('..\\pages\\product\\diactivplus.vue' /* webpackChunkName: "pages/product/diactivplus" */))
  20. const _6835b704 = () => interopDefault(import('..\\pages\\product\\intradermik.vue' /* webpackChunkName: "pages/product/intradermik" */))
  21. const _5a9b3dcd = () => interopDefault(import('..\\pages\\product\\kestos.vue' /* webpackChunkName: "pages/product/kestos" */))
  22. const _1a6f4e21 = () => interopDefault(import('..\\pages\\product\\mesobiolift.vue' /* webpackChunkName: "pages/product/mesobiolift" */))
  23. const _a9cc653e = () => interopDefault(import('..\\pages\\product\\rollaction.vue' /* webpackChunkName: "pages/product/rollaction" */))
  24. const _b2576ba4 = () => interopDefault(import('..\\pages\\product\\binary\\therapy-1.vue' /* webpackChunkName: "pages/product/binary/therapy-1" */))
  25. const _b23b3ca2 = () => interopDefault(import('..\\pages\\product\\binary\\therapy-2.vue' /* webpackChunkName: "pages/product/binary/therapy-2" */))
  26. const _b21f0da0 = () => interopDefault(import('..\\pages\\product\\binary\\therapy-3.vue' /* webpackChunkName: "pages/product/binary/therapy-3" */))
  27. const _b202de9e = () => interopDefault(import('..\\pages\\product\\binary\\therapy-4.vue' /* webpackChunkName: "pages/product/binary/therapy-4" */))
  28. const _08c79791 = () => interopDefault(import('..\\pages\\index.vue' /* webpackChunkName: "pages/index" */))
  29. const emptyFn = () => {}
  30. Vue.use(Router)
  31. export const routerOptions = {
  32. mode: 'history',
  33. base: '/',
  34. linkActiveClass: 'nuxt-link-active',
  35. linkExactActiveClass: 'nuxt-link-exact-active',
  36. scrollBehavior,
  37. routes: [{
  38. path: "/about",
  39. component: _82724b94,
  40. redirect: "/about.html",
  41. name: "about"
  42. }, {
  43. path: "/brand",
  44. component: _39825c08,
  45. redirect: "/brand.html",
  46. name: "brand"
  47. }, {
  48. path: "/case",
  49. component: _064d2cbe,
  50. redirect: "/case.html",
  51. name: "case"
  52. }, {
  53. path: "/contact",
  54. component: _14ea7583,
  55. redirect: "/contact.html",
  56. name: "contact"
  57. }, {
  58. path: "/cooperation",
  59. component: _7b589bc8,
  60. redirect: "/cooperation.html",
  61. name: "cooperation"
  62. }, {
  63. path: "/news",
  64. component: _f2fd73c4,
  65. redirect: "/news.html",
  66. name: "news"
  67. }, {
  68. path: "/brand/detail",
  69. component: _1cee7d17,
  70. redirect: "/brand/detail.html",
  71. name: "brand-detail"
  72. }, {
  73. path: "/brand/ross",
  74. component: _3f7353a3,
  75. redirect: "/brand/ross.html",
  76. name: "brand-ross"
  77. }, {
  78. path: "/contact/consult",
  79. component: _3eeac95d,
  80. redirect: "/contact/consult.html",
  81. name: "contact-consult"
  82. }, {
  83. path: "/contact/job",
  84. component: _20936d2e,
  85. redirect: "/contact/job.html",
  86. name: "contact-job"
  87. }, {
  88. path: "/contact/join-us",
  89. component: _da0705dc,
  90. redirect: "/contact/join-us.html",
  91. name: "contact-join-us"
  92. }, {
  93. path: "/news/detail",
  94. component: _3c0ae596,
  95. redirect: "/news/detail.html",
  96. name: "news-detail"
  97. }, {
  98. path: "/product/binary-premium",
  99. component: _750ce5f9,
  100. redirect: "/product/binary-premium.html",
  101. name: "product-binary-premium"
  102. }, {
  103. path: "/product/diactivplus",
  104. component: _355b1c76,
  105. redirect: "/product/diactivplus.html",
  106. name: "product-diactivplus"
  107. }, {
  108. path: "/product/intradermik",
  109. component: _6835b704,
  110. redirect: "/product/intradermik.html",
  111. name: "product-intradermik"
  112. }, {
  113. path: "/product/kestos",
  114. component: _5a9b3dcd,
  115. redirect: "/product/kestos.html",
  116. name: "product-kestos"
  117. }, {
  118. path: "/product/mesobiolift",
  119. component: _1a6f4e21,
  120. redirect: "/product/mesobiolift.html",
  121. name: "product-mesobiolift"
  122. }, {
  123. path: "/product/rollaction",
  124. component: _a9cc653e,
  125. redirect: "/product/rollaction.html",
  126. name: "product-rollaction"
  127. }, {
  128. path: "/product/binary/therapy-1",
  129. component: _b2576ba4,
  130. redirect: "/product/binary/therapy-1.html",
  131. name: "product-binary-therapy-1"
  132. }, {
  133. path: "/product/binary/therapy-2",
  134. component: _b23b3ca2,
  135. redirect: "/product/binary/therapy-2.html",
  136. name: "product-binary-therapy-2"
  137. }, {
  138. path: "/product/binary/therapy-3",
  139. component: _b21f0da0,
  140. redirect: "/product/binary/therapy-3.html",
  141. name: "product-binary-therapy-3"
  142. }, {
  143. path: "/product/binary/therapy-4",
  144. component: _b202de9e,
  145. redirect: "/product/binary/therapy-4.html",
  146. name: "product-binary-therapy-4"
  147. }, {
  148. path: "/",
  149. component: _08c79791,
  150. redirect: "/index.html",
  151. name: "index"
  152. }, {
  153. path: "/about.html",
  154. component: _82724b94,
  155. name: "about.html"
  156. }, {
  157. path: "/brand.html",
  158. component: _39825c08,
  159. name: "brand.html"
  160. }, {
  161. path: "/case.html",
  162. component: _064d2cbe,
  163. name: "case.html"
  164. }, {
  165. path: "/contact.html",
  166. component: _14ea7583,
  167. name: "contact.html"
  168. }, {
  169. path: "/cooperation.html",
  170. component: _7b589bc8,
  171. name: "cooperation.html"
  172. }, {
  173. path: "/news.html",
  174. component: _f2fd73c4,
  175. name: "news.html"
  176. }, {
  177. path: "/brand/detail.html",
  178. component: _1cee7d17,
  179. name: "brand-detail.html"
  180. }, {
  181. path: "/brand/ross.html",
  182. component: _3f7353a3,
  183. name: "brand-ross.html"
  184. }, {
  185. path: "/contact/consult.html",
  186. component: _3eeac95d,
  187. name: "contact-consult.html"
  188. }, {
  189. path: "/contact/job.html",
  190. component: _20936d2e,
  191. name: "contact-job.html"
  192. }, {
  193. path: "/contact/join-us.html",
  194. component: _da0705dc,
  195. name: "contact-join-us.html"
  196. }, {
  197. path: "/news/detail.html",
  198. component: _3c0ae596,
  199. name: "news-detail.html"
  200. }, {
  201. path: "/product/binary-premium.html",
  202. component: _750ce5f9,
  203. name: "product-binary-premium.html"
  204. }, {
  205. path: "/product/diactivplus.html",
  206. component: _355b1c76,
  207. name: "product-diactivplus.html"
  208. }, {
  209. path: "/product/intradermik.html",
  210. component: _6835b704,
  211. name: "product-intradermik.html"
  212. }, {
  213. path: "/product/kestos.html",
  214. component: _5a9b3dcd,
  215. name: "product-kestos.html"
  216. }, {
  217. path: "/product/mesobiolift.html",
  218. component: _1a6f4e21,
  219. name: "product-mesobiolift.html"
  220. }, {
  221. path: "/product/rollaction.html",
  222. component: _a9cc653e,
  223. name: "product-rollaction.html"
  224. }, {
  225. path: "/product/binary/therapy-1.html",
  226. component: _b2576ba4,
  227. name: "product-binary-therapy-1.html"
  228. }, {
  229. path: "/product/binary/therapy-2.html",
  230. component: _b23b3ca2,
  231. name: "product-binary-therapy-2.html"
  232. }, {
  233. path: "/product/binary/therapy-3.html",
  234. component: _b21f0da0,
  235. name: "product-binary-therapy-3.html"
  236. }, {
  237. path: "/product/binary/therapy-4.html",
  238. component: _b202de9e,
  239. name: "product-binary-therapy-4.html"
  240. }, {
  241. path: "/index.html",
  242. component: _08c79791,
  243. name: "index.html"
  244. }],
  245. fallback: false
  246. }
  247. export function createRouter (ssrContext, config) {
  248. const base = (config._app && config._app.basePath) || routerOptions.base
  249. const router = new Router({ ...routerOptions, base })
  250. // TODO: remove in Nuxt 3
  251. const originalPush = router.push
  252. router.push = function push (location, onComplete = emptyFn, onAbort) {
  253. return originalPush.call(this, location, onComplete, onAbort)
  254. }
  255. const resolve = router.resolve.bind(router)
  256. router.resolve = (to, current, append) => {
  257. if (typeof to === 'string') {
  258. to = normalizeURL(to)
  259. }
  260. return resolve(to, current, append)
  261. }
  262. return router
  263. }