|
@@ -2,11 +2,15 @@ import { createRouter , createWebHashHistory } from 'vue-router';
|
|
|
import Home from "./component/Home.vue";
|
|
|
import test from "./component/test.vue";
|
|
|
import About from "./component/About.vue";
|
|
|
+import Login from "./component/approve/Login.vue";
|
|
|
+import Register from "./component/approve/Register.vue";
|
|
|
const routes=[
|
|
|
{ path:'/',redirect:'/home' },
|
|
|
{ path:'/home',component:Home },
|
|
|
{ path:'/test',component:test },
|
|
|
- { path:'/about',component:About }
|
|
|
+ { path:'/about',component:About },
|
|
|
+ { path:'/login',component:Login },
|
|
|
+ { path:'/register',component:Register },
|
|
|
];
|
|
|
const router = createRouter({
|
|
|
routes,
|