diff --git a/README.md b/README.md index c0d474dfd..fc41f2bdd 100644 --- a/README.md +++ b/README.md @@ -56,10 +56,24 @@ Spearheaded by Professor Siyuan Liu's Team (South China University of Technology + + @@ -71,19 +85,14 @@ Spearheaded by Professor Siyuan Liu's Team (South China University of Technology - + + - - + @@ -114,20 +128,6 @@ Spearheaded by Professor Siyuan Liu's Team (South China University of Technology - - diff --git a/README_en.md b/README_en.md index a50006f8b..bc0ddea92 100644 --- a/README_en.md +++ b/README_en.md @@ -58,72 +58,72 @@ Want to see the usage effects? Click the videos below 🎥 + + - - + + - - @@ -132,35 +132,35 @@ Want to see the usage effects? Click the videos below 🎥 diff --git a/docs/images/demo1.png b/docs/images/demo1.png index 6459a06fd..1ab7c2247 100644 Binary files a/docs/images/demo1.png and b/docs/images/demo1.png differ diff --git a/docs/images/demo6.png b/docs/images/demo6.png index dc4edbebe..51f1f5e65 100644 Binary files a/docs/images/demo6.png and b/docs/images/demo6.png differ diff --git a/docs/images/demo9.png b/docs/images/demo9.png index ce74a02df..ff422fe9c 100644 Binary files a/docs/images/demo9.png and b/docs/images/demo9.png differ diff --git a/main/manager-mobile/src/pages/forgot-password/index.vue b/main/manager-mobile/src/pages/forgot-password/index.vue index eb4ad50a3..f574d0e91 100644 --- a/main/manager-mobile/src/pages/forgot-password/index.vue +++ b/main/manager-mobile/src/pages/forgot-password/index.vue @@ -114,9 +114,18 @@ function closeAreaCodeSheet() { showAreaCodeSheet.value = false; } +// 生成UUID +function generateUUID() { + return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => { + const r = (Math.random() * 16) | 0; + const v = c === "x" ? r : (r & 0x3) | 0x8; + return v.toString(16); + }); +} + // 获取图形验证码 async function refreshCaptcha() { - const uuid = crypto.randomUUID(); + const uuid = generateUUID(); formData.value.captchaId = uuid; captchaImage.value = `${getEnvBaseUrl()}/user/captcha?uuid=${uuid}&t=${Date.now()}`; } diff --git a/main/manager-mobile/src/pages/login/index.vue b/main/manager-mobile/src/pages/login/index.vue index e3cea6ca3..462dccee8 100644 --- a/main/manager-mobile/src/pages/login/index.vue +++ b/main/manager-mobile/src/pages/login/index.vue @@ -123,6 +123,15 @@ function goToForgotPassword() { }) } +// 生成UUID +function generateUUID() { + return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { + const r = Math.random() * 16 | 0 + const v = c === 'x' ? r : (r & 0x3 | 0x8) + return v.toString(16) + }) +} + let skipReLaunch = false // 全局或组件作用域 //跳转至服务端设置页面 @@ -134,7 +143,7 @@ function goToServerSetting() { // 获取验证码 async function refreshCaptcha() { - const uuid = crypto.randomUUID(); + const uuid = generateUUID(); formData.value.captchaId = uuid; captchaImage.value = `${getEnvBaseUrl()}/user/captcha?uuid=${uuid}&t=${Date.now()}`; } diff --git a/main/manager-mobile/src/pages/register/index.vue b/main/manager-mobile/src/pages/register/index.vue index 0f0dad3e9..5004b5d82 100644 --- a/main/manager-mobile/src/pages/register/index.vue +++ b/main/manager-mobile/src/pages/register/index.vue @@ -124,9 +124,18 @@ function closeAreaCodeSheet() { showAreaCodeSheet.value = false } +// 生成UUID +function generateUUID() { + return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => { + const r = (Math.random() * 16) | 0 + const v = c === 'x' ? r : (r & 0x3) | 0x8 + return v.toString(16) + }) +} + // 获取验证码 async function refreshCaptcha() { - const uuid = crypto.randomUUID(); + const uuid = generateUUID(); formData.value.captchaId = uuid; captchaImage.value = `${getEnvBaseUrl()}/user/captcha?uuid=${uuid}&t=${Date.now()}`; } diff --git a/main/manager-web/src/utils/index.js b/main/manager-web/src/utils/index.js index 55849f17a..638ee8fca 100755 --- a/main/manager-web/src/utils/index.js +++ b/main/manager-web/src/utils/index.js @@ -126,6 +126,17 @@ export function randomNum(min, max) { return Math.round(Math.random() * (max - min) + min) } + +/** + * 获取uuid + */ +export function getUUID() { + return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => { + return (c === 'x' ? (Math.random() * 16 | 0) : ('r&0x3' | '0x8')).toString(16) + }) +} + + /** * 验证手机号格式 * @param {string} mobile 手机号 diff --git a/main/manager-web/src/views/login.vue b/main/manager-web/src/views/login.vue index ba4c99942..fc9c271e5 100644 --- a/main/manager-web/src/views/login.vue +++ b/main/manager-web/src/views/login.vue @@ -148,7 +148,7 @@ import Api from "@/apis/api"; import VersionFooter from "@/components/VersionFooter.vue"; import i18n, { changeLanguage } from "@/i18n"; -import { goToPage, showDanger, showSuccess, sm2Encrypt, validateMobile } from "@/utils"; +import { getUUID, 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 = crypto.randomUUID(); + this.captchaUuid = getUUID(); Api.user.getCaptcha(this.captchaUuid, (res) => { if (res.status === 200) { diff --git a/main/manager-web/src/views/register.vue b/main/manager-web/src/views/register.vue index 577481443..de54011e4 100644 --- a/main/manager-web/src/views/register.vue +++ b/main/manager-web/src/views/register.vue @@ -125,7 +125,7 @@
+ + + 响应速度感受 + + + + + + 速度优化秘诀 + + + - 小智医疗救护车场景 + 复杂医疗场景 - + - 自定义音色 - - - - - - 使用粤语交流 + 声纹识别
@@ -91,12 +100,17 @@ Spearheaded by Professor Siyuan Liu's Team (South China University of Technology
- + - 自定义音色 + MCP接入点 + + + + + + 多指令任务 - - - IOT指令控制设备 - - - - - - 播报新闻 - - -
@@ -145,23 +145,23 @@ Spearheaded by Professor Siyuan Liu's Team (South China University of Technology - + - 多指令任务 + 自定义音色 - + - MCP接入点 + 使用粤语交流 - + - 声纹识别 + 播报新闻 - Xiaozhi ESP32 connecting to own backend model + 响应速度感受 + + + + + + 速度优化秘诀 + + + + + + 复杂医疗场景 - MQTT command issuance + MQTT指令下发 - + - Custom voice timbre - - - - - - Using Cantonese for communication - - - - - - Controlling home appliances + 声纹识别
- + - Custom voice timbre + 控制家电开关 + + + + + + MCP接入点 + + + + + + 多指令任务 - Playing music + 播放音乐 - Weather plugin - - - - - - IOT command control devices - - - - - - News broadcasting + 天气插件 - Real-time interruption + 实时打断 - Photo recognition of objects + 拍照识物品 - + - Multi-command tasks + 自定义音色 - + - MCP endpoint + 使用粤语交流 - + - Voiceprint recognition + 播报新闻