删去登录版
This commit is contained in:
parent
55e468ce79
commit
0598216ecc
@ -2,8 +2,8 @@ import authentication_main from '../views/authentication/authentication_main.vue
|
|||||||
import register from '../views/authentication/authentication_register.vue'
|
import register from '../views/authentication/authentication_register.vue'
|
||||||
import authentication_login from "../views/authentication/authentication_login.vue";
|
import authentication_login from "../views/authentication/authentication_login.vue";
|
||||||
export default [
|
export default [
|
||||||
{ path: '/main', component: authentication_main },
|
// { path: '/main', component: authentication_main },
|
||||||
{ path: '/login', component: authentication_login },
|
// { path: '/login', component: authentication_login },
|
||||||
{ path: '/register', component: register },
|
// { path: '/register', component: register },
|
||||||
// { path: '/profile', component: Profile }
|
// { path: '/profile', component: Profile }
|
||||||
]
|
]
|
||||||
|
|||||||
@ -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;
|
|
||||||
});
|
|
||||||
//跳转逻辑
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user