pages/index/detail.vue
@@ -71,7 +71,9 @@ <script> import { showToast, showModal showModal, showError, showInfo } from "@/comm/utils.js" import { Button @@ -129,7 +131,7 @@ const info = await shellVersion(this.vehicleIp) this.car_version = info.software_version } catch (ex) { this.showError(ex) showError(ex) } }, clickDelete() { @@ -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,"确定") }, } }