From 08468edd452df50429f67ebcc6ee08799fddea5e Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期二, 25 一月 2022 16:36:55 +0800
Subject: [PATCH] 移除sqlite支持
---
web_src/src/components/DeviceList.vue | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/web_src/src/components/DeviceList.vue b/web_src/src/components/DeviceList.vue
index f064950..0dab746 100644
--- a/web_src/src/components/DeviceList.vue
+++ b/web_src/src/components/DeviceList.vue
@@ -196,16 +196,16 @@
url: '/api/device/query/devices/' + itemData.deviceId + '/sync'
}).then(function(res) {
console.log("鍒锋柊璁惧缁撴灉锛�"+JSON.stringify(res));
- if (!res.data.deviceId) {
+ if (res.data.code !==0) {
that.$message({
showClose: true,
- message: res.data,
+ message: res.data.msg,
type: 'error'
});
}else{
that.$message({
showClose: true,
- message: '璇锋眰鎴愬姛',
+ message: res.data.msg,
type: 'success'
});
}
@@ -213,8 +213,13 @@
that.$refs[itemData.deviceId + 'refbtn' ].loading = false;
}).catch(function(e) {
console.error(e)
+ that.$message({
+ showClose: true,
+ message: e,
+ type: 'error'
+ });
that.$refs[itemData.deviceId + 'refbtn' ].loading = false;
- });;
+ });
},
//閫氱煡璁惧涓婁紶濯掍綋娴�
sendDevicePush: function(itemData) {
--
Gitblit v1.8.0