This commit is contained in:
神仙都没用 2024-09-28 14:33:23 +08:00
parent baf5b6c065
commit 0e1b1804b7

View File

@ -80,14 +80,14 @@ import { useBase } from "/$/base";
import PicCaptcha from "./components/pic-captcha.vue";
import { storage } from "/@/cool/utils";
const { refs, setRefs, router, service } = useCool();
const { refs, setRefs, router, service, browser } = useCool();
const { user, app } = useBase();
//
const saving = ref(false);
//
const readonly = ref(true);
const readonly = ref(!browser.isMini);
//
const form = reactive({
@ -125,12 +125,12 @@ async function toLogin() {
//
router.push("/");
} catch (err: any) {
} catch (err) {
//
refs.picCaptcha.refresh();
//
ElMessage.error(err.message);
ElMessage.error((err as Error).message);
}
saving.value = false;