|
|
@@ -2,7 +2,6 @@ import Vue from 'vue'
|
|
|
import Router from 'vue-router'
|
|
|
const routerPush = Router.prototype.push
|
|
|
Vue.use(Router)
|
|
|
-<<<<<<< HEAD
|
|
|
const ter = new Router({
|
|
|
// mode: 'history',
|
|
|
base: process.env.BASE_URL,
|
|
|
@@ -11,6 +10,13 @@ const ter = new Router({
|
|
|
redirect: '/home'
|
|
|
},
|
|
|
{
|
|
|
+ path: '/test',
|
|
|
+ name: 'home',
|
|
|
+ component: () => import('../views/test.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '节水测试'
|
|
|
+ }
|
|
|
+ }, {
|
|
|
path: '/home',
|
|
|
name: 'home',
|
|
|
component: () => import('../views/Home.vue'),
|
|
|
@@ -52,40 +58,6 @@ const ter = new Router({
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
-=======
|
|
|
-const ter = new Router({
|
|
|
- // mode: 'history',
|
|
|
- base: process.env.BASE_URL,
|
|
|
- routes: [
|
|
|
- {
|
|
|
- path: '/',
|
|
|
- redirect: '/home'
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/home',
|
|
|
- name: 'home',
|
|
|
- component: () => import('../views/Home.vue'),
|
|
|
- meta: {
|
|
|
- title: '添利'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/test',
|
|
|
- name: 'home',
|
|
|
- component: () => import('../views/test.vue'),
|
|
|
- meta: {
|
|
|
- title: '添利'
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- path: '*',
|
|
|
- redirect: '/home'
|
|
|
- }
|
|
|
- ]
|
|
|
-})
|
|
|
-
|
|
|
-
|
|
|
->>>>>>> 3eb8156c5037847aa2ac2d617689590b9a3d19c7
|
|
|
|
|
|
// {
|
|
|
// path: '*',
|