diff --git a/src/router/authentication.js b/src/router/authentication.js index a86507e..44f35d7 100644 --- a/src/router/authentication.js +++ b/src/router/authentication.js @@ -2,8 +2,8 @@ import authentication_main from '../views/authentication/authentication_main.vue import register from '../views/authentication/authentication_register.vue' import authentication_login from "../views/authentication/authentication_login.vue"; export default [ - { path: '/main', component: authentication_main }, - { path: '/login', component: authentication_login }, - { path: '/register', component: register }, + // { path: '/main', component: authentication_main }, + // { path: '/login', component: authentication_login }, + // { path: '/register', component: register }, // { path: '/profile', component: Profile } ] diff --git a/src/services/authenticationService.js b/src/services/authenticationService.js index 13b414c..e69de29 100644 --- a/src/services/authenticationService.js +++ b/src/services/authenticationService.js @@ -1,23 +0,0 @@ -import axios from "axios"; - -export default { - login(account, password){ - const url = `api/users/checkLogin` - const data = { - account: account, - password: password - }; - return axios.post(url, data) - .then(response => { - return response.data; - }); - }, - register(user){ - const url = `api/users/checkRegister` - return axios.post(url, user) - .then(response => { - return response.data; - }); - //跳转逻辑 - } -} \ No newline at end of file