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