Kelvin 3 years ago
parent 516ad216b0
commit 117b20430c

@ -1 +1 @@
VITE_API_BASE_URL= 'http://localhost:8080'
VITE_API_BASE_URL= 'http://localhost:8080/'

@ -5,13 +5,15 @@ import { UserState } from '@/store/modules/user/types';
export interface LoginData {
username: string;
password: string;
code: string;
uuid: string;
}
export interface LoginRes {
token: string;
}
export function login(data: LoginData) {
return axios.post<LoginRes>('/api/user/login', data);
return axios.post<LoginRes>('/login', data);
}
export function logout() {

@ -88,6 +88,8 @@
const userInfo = reactive({
username: loginConfig.value.username,
password: loginConfig.value.password,
code: '111',
uuid: '222'
});
const handleSubmit = async ({

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save