删去登录版

This commit is contained in:
MiLla 2024-07-06 06:38:35 +08:00
parent 55e468ce79
commit 0598216ecc
2 changed files with 3 additions and 26 deletions

View File

@ -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 }
]

View File

@ -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;
});
//跳转逻辑
}
}