cuiqian2004
2025-09-19 d8743368ffda9bc0fb2c6818f695a9a6b1079e57
pages/index/detail.vue
@@ -71,7 +71,9 @@
<script>
   import {
      showToast,
      showModal
      showModal,
      showError,
      showInfo
   } from "@/comm/utils.js"
   import {
      Button
@@ -129,11 +131,11 @@
               const info = await shellVersion(this.vehicleIp)
               this.car_version = info.software_version
            } catch (ex) {
               this.showError(ex)
               showError(ex)
            }
         },
         clickDelete() {
            showModal(`确定要删除设备“${ this.vehicleInfo.name}”吗`, "警告").then((res) => {
            showModal(`确定要删除设备“${ this.vehicleInfo.name}”吗`, "警告",true,"确定","取消").then((res) => {
               if (res) {
                  const eventChannel = this.getOpenerEventChannel();
                  eventChannel.emit('delete_vehicle', this.vehicleInfo);
@@ -164,13 +166,7 @@
               delta: 1
            })
         },
         showError(ex) {
            let exStr = JSON.stringify(ex)
            if (exStr == "{}")
               exStr = ex
            let tip = typeof ex.msg == "string" ? ex.msg : exStr
            showModal(tip, "错误", false)
         },
      }
   }