From 0598216eccd360c2e89717a383c1765f650c7fbb Mon Sep 17 00:00:00 2001 From: MiLla <18826902282@163.com> Date: Sat, 6 Jul 2024 06:38:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E5=8E=BB=E7=99=BB=E5=BD=95=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/authentication.js | 6 +++--- src/services/authenticationService.js | 23 ----------------------- 2 files changed, 3 insertions(+), 26 deletions(-) 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