bug fix and performance improvements

This commit is contained in:
quantulr
2023-08-01 15:50:13 +08:00
parent 1f5d58558b
commit 0a48c30f0e
37 changed files with 4661 additions and 209 deletions

View File

@ -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();
}