添加页面
This commit is contained in:
@@ -4,21 +4,25 @@ import ViewUI from "view-design";
|
||||
import "view-design/dist/styles/iview.css";
|
||||
import VueClipboard from "vue-clipboard2";
|
||||
|
||||
import HelloWorld from "./components/HelloWorld.vue";
|
||||
// import HelloWorld from "./components/HelloWorld.vue";
|
||||
|
||||
import Fault from './components/Fault.vue'
|
||||
// import Fault from './components/Fault.vue'
|
||||
|
||||
import VueRouter from "vue-router";
|
||||
|
||||
const routes=[
|
||||
{
|
||||
path: '/',
|
||||
name: '_home',
|
||||
redirect: '/a'
|
||||
},
|
||||
{ path: '/a', component: HelloWorld },
|
||||
{ path: '/b', component: Fault }
|
||||
]
|
||||
import routes from '@/route'
|
||||
|
||||
|
||||
|
||||
// const routes=[
|
||||
// {
|
||||
// path: '/',
|
||||
// name: '_home',
|
||||
// redirect: '/a'
|
||||
// },
|
||||
// { path: '/a', component: HelloWorld },
|
||||
// { path: '/b', component: Fault }
|
||||
// ]
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user