bug fix and performance improvements
This commit is contained in:
@ -143,17 +143,14 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import Cookies from "js-cookie";
|
||||
// import { encrypt, decrypt } from "@/utils/jsencrypt";
|
||||
import Cookies from "js-cookie"; // import { encrypt, decrypt } from "@/utils/jsencrypt";
|
||||
import md5 from "js-md5";
|
||||
import Register from "../register";
|
||||
import Retrieve from "../retrieve";
|
||||
import WebGetCode from "@/components/webGetCode";
|
||||
import useUserStore from "@/store/modules/user";
|
||||
import { useRouter } from "vue-router";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { computed, reactive } from "vue";
|
||||
import { reactify } from "@vueuse/core";
|
||||
import { computed, reactive, ref } from "vue"; // const store = useStore();
|
||||
// const store = useStore();
|
||||
const router = useRouter();
|
||||
|
||||
@ -176,9 +173,9 @@ const registerForm = ref({
|
||||
const loginRef = ref();
|
||||
const isCheckRef = ref();
|
||||
const disabled = ref(true);
|
||||
const buttonName = ref("获取验证码");
|
||||
const isDisabled = ref(false);
|
||||
const time = ref(10);
|
||||
// const buttonName = ref("获取验证码");
|
||||
// const isDisabled = ref(false);
|
||||
// const time = ref(10);
|
||||
|
||||
const loginRules = reactive({
|
||||
username: [
|
||||
@ -199,7 +196,7 @@ const loginRules = reactive({
|
||||
|
||||
const isCheck = (rule, value, callback) => {
|
||||
if (!value) {
|
||||
callback(new Error("请阅读并勾选"));
|
||||
callback(new Error(t("register.readAndCheck")));
|
||||
} else {
|
||||
callback();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user