Skip to content

Commit

Permalink
fix: 修复漏洞
Browse files Browse the repository at this point in the history
  • Loading branch information
SilianZ committed Oct 23, 2024
1 parent 9f68d34 commit 251ba3c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const localeOptions = ref([
code: "en_us",
},
{
key: "微软中文",
key: "微软中文(不建议)",
code: "zh_ms",
},
]);
Expand Down
20 changes: 10 additions & 10 deletions src/views/LoginView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,16 @@ const onClickEvent = () => {
loading.value = false;
return;
}
// if (cf_token.value == "") {
// toast.add({
// severity: "error",
// summary: t("toast.error"),
// detail: t("toast.robot"),
// life: 3000,
// });
// loading.value = false;
// return;
// }
if (cf_token.value == "") {
toast.add({
severity: "error",
summary: t("toast.error"),
detail: t("toast.robot"),
life: 3000,
});
loading.value = false;
return;
}
postLogin(user.value, password.value, cf_token.value).then(
(res: { success: boolean; message: string; token?: string }) => {
if (res.success) {
Expand Down

0 comments on commit 251ba3c

Please sign in to comment.