From d8743368ffda9bc0fb2c6818f695a9a6b1079e57 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 19 九月 2025 18:22:15 +0800
Subject: [PATCH] laster
---
pages/index/detail.vue | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/pages/index/detail.vue b/pages/index/detail.vue
index 94db021..5c410d6 100644
--- a/pages/index/detail.vue
+++ b/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)
- },
+
}
}
--
Gitblit v1.9.1