@@ -36,13 +36,13 @@ const submit = async () => {
|
||||
const valid = await formRef.value?.validate().catch(() => false);
|
||||
if (!valid) return;
|
||||
|
||||
const response = await userStore.login({
|
||||
const res = await userStore.login({
|
||||
username: form.username.trim(),
|
||||
password: form.password
|
||||
});
|
||||
|
||||
if (response?.code === 0) {
|
||||
emit("success", response);
|
||||
if (res?.code === 0) {
|
||||
emit("success", res);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user