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/index.vue | 19 +++++++------------
1 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 63dadb8..3fcc182 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -123,7 +123,9 @@
import {
session,
showToast,
- showModal
+ showModal,
+ showError,
+ showInfo
} from "@/comm/utils.js"
import {
getAllScene,
@@ -280,7 +282,7 @@
}
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
@@ -304,7 +306,7 @@
this.pageList = [...list]
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
@@ -409,7 +411,7 @@
}
}
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
async checkConnectSuccess(ip) {
@@ -532,7 +534,7 @@
}
})
} catch (ex) {
- this.showError(ex)
+ showError(ex)
}
},
@@ -618,13 +620,6 @@
url: `/pages/index/backup?ip=${page.ip}`
})
}
- },
- showError(ex) {
- let exStr = JSON.stringify(ex)
- if (exStr == "{}")
- exStr = ex
- let tip = typeof ex.msg == "string" ? ex.msg : exStr
- showModal(tip, "閿欒", false, "纭畾")
},
closeMenu() {
this.$refs.refPopupMenu.close()
--
Gitblit v1.9.1