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