forked from dyf/dyf-vue-ui
修复设备列表,查看二维码不更新bug
This commit is contained in:
@ -277,7 +277,8 @@
|
||||
<!-- IMEI 二维码弹窗 -->
|
||||
<el-dialog v-model="qrCodeDialogVisible" title="设备IMEI二维码" width="20%" append-to-body>
|
||||
<div style="text-align: center;">
|
||||
<QRCodeVue3 :value="qrCodeValue" :size="100" />
|
||||
<!-- 使用 v-if 强制重新渲染 -->
|
||||
<QRCodeVue3 v-if="qrCodeDialogVisible" :value="qrCodeValue" :size="100" />
|
||||
<p style="margin-top: 10px;">{{ qrCodeValue }}</p>
|
||||
</div>
|
||||
<template #footer>
|
||||
@ -558,7 +559,7 @@ const handleDeviceTypeChange = async (deviceTypeId: string | number) => {
|
||||
isProcessing = true;
|
||||
// 新增或编辑时没有值,根据设备类型获取通讯方式
|
||||
try {
|
||||
userFormRef.value?.clearValidate(['deviceMac', 'deviceImei','bluetoothName']);
|
||||
userFormRef.value?.clearValidate(['deviceMac', 'deviceImei', 'bluetoothName']);
|
||||
if (!deviceTypeId) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user