1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
const publicPath = require('@/config/isc-publicPath.js')
import Vue from 'vue'
import Router from 'vue-router'
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
return originalPush.call(this, location).catch(err => err)
}
Vue.use(Router)
import index from '../page/index.vue'
import isc_404 from '../page/isc_404.vue'
import newWebscan from "@/components/business/webscan/newWin.vue"
import webscan from "@/components/business/webscan/win.vue"
export default new Router({
mode: 'history',
base: publicPath,
routes: [
{
path: '/webscan',
component: webscan,
name: 'webscan'
},
{
path: '/newWebscan',
component: newWebscan,
name: 'newWebscan'
}, {
path: '*',
component: index,
children: [{
path: '/',
component: isc_404,
meta: {
title: '404'
}
}]
}
]
})