From 76239bde9b61dde775aa66a75aeb7c1560ae7fb2 Mon Sep 17 00:00:00 2001
From: 1012414140@qq.com <1012414140@qq.com>
Date: 星期三, 24 十二月 2025 15:38:30 +0800
Subject: [PATCH] feat: 地图数据
---
src/assets/js/ByUtils.js | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/src/assets/js/ByUtils.js b/src/assets/js/ByUtils.js
index 4183312..bca4ed1 100644
--- a/src/assets/js/ByUtils.js
+++ b/src/assets/js/ByUtils.js
@@ -111,8 +111,17 @@
vm.$router.push({'path': '/login'});
vm.$alert('浼氳瘽缁撴潫锛岃閲嶆柊鐧诲綍', {'title': '鎻愮ず', 'type': 'warning', 'center': true, 'showClose': false});
}else{
- vm.$alert('鎿嶄綔澶辫触锛�' + data.message, {'title': '鎻愮ず', 'type': 'warning', 'center': true, 'showClose': false});
- }
+ let a = '';
+ if(response.data){
+ if(response.data.msg){
+ a=response.data.msg
+ }else {
+ a='鏈嶅姟鍣ㄦ晠闅�'
+ }
+ }else {
+ a="鏁版嵁閿欒"
+ }
+ vm.$alert(a , {'title': '鎻愮ず', 'type': 'warning', 'center': true, 'showClose': false}); }
}
}).catch((e) => {
vm.$loading().close();
@@ -265,9 +274,12 @@
}).then((response) => {
//vm.$loading().close();
let data = response.data;
+ console.log(response)
if (data && data.code==0) {
callBackFunction(data);
- } else {
+ } else if(data.code==1) {
+ callBackFunction(data);
+ }else {
if(data.message=='-9999'){
vm.$router.push({'path': '/login'});
vm.$alert('浼氳瘽缁撴潫锛岃閲嶆柊鐧诲綍', {'title': '鎻愮ず', 'type': 'warning', 'center': true, 'showClose': false});
@@ -320,9 +332,10 @@
// vm.$loading();
vm.$axios({
// headers: {
- // 'token': token
+ // 'Content-Type': "application/json;charset=UTF-8"
// },
withCredentials: false,
+ responseType: "blob",
url: url,
method: 'post',
data: data
--
Gitblit v1.9.1