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/connect.vue | 20 +++++++-------------
1 files changed, 7 insertions(+), 13 deletions(-)
diff --git a/pages/index/connect.vue b/pages/index/connect.vue
index f7ff7a2..ff1ed67 100644
--- a/pages/index/connect.vue
+++ b/pages/index/connect.vue
@@ -56,7 +56,9 @@
import {
session,
showToast,
- showModal
+ showModal,
+ showError,
+ showInfo
} from "@/comm/utils.js"
import {
Button
@@ -143,7 +145,7 @@
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
checkConnectStatus() {
@@ -181,11 +183,11 @@
const result = res.result || ""
const arCode = result.split(";")
if (arCode.length != 3) {
- this.showError("鏃犳晥鐨勪簩缁寸爜锛�)
+ showInfo("鏃犳晥鐨勪簩缁寸爜锛�)
return
}
if (!arCode[0].trim() || !arCode[0].trim()) {
- this.showError("鏃犳晥鐨勪簩缁寸爜锛�)
+ showInfo("鏃犳晥鐨勪簩缁寸爜锛�)
return
}
that.ip = arCode[0]
@@ -291,7 +293,7 @@
} catch (ex) {
console.log("connectVehicle faile",this.ip,ex)
this.connectState = 3
- // this.showError(ex)
+ // showError(ex)
}
},
@@ -360,14 +362,6 @@
}, 2000)
})
},
- showError(ex) {
- let exStr = JSON.stringify(ex)
- if (exStr == "{}")
- exStr = ex
- let tip = typeof ex.msg == "string" ? ex.msg : exStr
- showModal(tip, "閿欒", false,"纭畾")
- },
-
}
}
</script>
--
Gitblit v1.9.1