Browse Source

fix: 去掉ota产品弹窗确认选择的提示

yanglzh 1 năm trước cách đây
mục cha
commit
83c8eade77
1 tập tin đã thay đổi với 3 bổ sung9 xóa
  1. 3 9
      src/views/iot/ota-update/update/component/productBind.vue

+ 3 - 9
src/views/iot/ota-update/update/component/productBind.vue

@@ -93,19 +93,13 @@ export default defineComponent({
     };
 
     const confirmBind = () => {
-      let msg = '是否确定选择产品?';
       if (state.deviceKeyList.length === 0) {
         ElMessage.error('请选择要确定绑定的数据。');
         return;
       }
-      ElMessageBox.confirm(msg, '提示', {
-        confirmButtonText: '确认',
-        cancelButtonText: '取消',
-        type: 'warning',
-      }).then(() => {
-        emit('bindSuccess', state.deviceKeyList, state.deviceNameList)
-        state.isShowDialog = false;
-      })
+
+      emit('bindSuccess', state.deviceKeyList, state.deviceNameList)
+      state.isShowDialog = false;
     };
 
     const handleChange = () => {