This commit is contained in:
lixiaobang 2022-11-10 09:39:48 +08:00
commit a2b899cfc3
4 changed files with 37 additions and 14338 deletions

14356
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -25,6 +25,7 @@
</div> </div>
<div class="content"> <div class="content">
<router-view /> <router-view />
</div> </div>
</div> </div>
</template> </template>

View File

@ -3,18 +3,26 @@ import Router from 'vue-router'
Vue.use(Router) Vue.use(Router)
const originalPush = Router.prototype.push
Router.prototype.push = function push (location) {
return originalPush.call(this, location).catch(err => err)
}
export default new Router({ export default new Router({
mode: 'history', mode: 'history',
base: process.env.BASE_URL, base: process.env.BASE_URL,
routes: [ routes: [
{ {
path: '/', path: '/',
redirect:'/home', redirect:'/index',
}, },
{ {
path: '/home', path: '/index',
name: 'home', name: 'index',
component: () => import ('./views/Home.vue') component: () => import ('./views/index.vue')
}, },
{ {
path: '/stationBuilding', path: '/stationBuilding',