mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 00:53:54 +08:00
Merge branch 'main' into MVP
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 54 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 13 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 32 KiB |
@@ -39,8 +39,8 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
confirm() {
|
||||
if (!this.deviceCode.trim()) {
|
||||
this.$message.error('请输入设备验证码');
|
||||
if (!/^\d{6}$/.test(this.deviceCode)) {
|
||||
this.$message.error('请输入6位数字设备验证码');
|
||||
return;
|
||||
}
|
||||
this.$emit('confirm',this.deviceCode)
|
||||
|
||||
Reference in New Issue
Block a user