mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-27 09:33:55 +08:00
在管理网页也修改uuid生成方法
This commit is contained in:
@@ -148,7 +148,7 @@
|
||||
import Api from "@/apis/api";
|
||||
import VersionFooter from "@/components/VersionFooter.vue";
|
||||
import i18n, { changeLanguage } from "@/i18n";
|
||||
import { getUUID, goToPage, showDanger, showSuccess, sm2Encrypt, validateMobile } from "@/utils";
|
||||
import { goToPage, showDanger, showSuccess, sm2Encrypt, validateMobile } from "@/utils";
|
||||
import { mapState } from "vuex";
|
||||
|
||||
export default {
|
||||
@@ -213,7 +213,7 @@ export default {
|
||||
this.$router.push("/home");
|
||||
}
|
||||
} else {
|
||||
this.captchaUuid = getUUID();
|
||||
this.captchaUuid = crypto.randomUUID();
|
||||
|
||||
Api.user.getCaptcha(this.captchaUuid, (res) => {
|
||||
if (res.status === 200) {
|
||||
|
||||
Reference in New Issue
Block a user