From a9ef032eb52b038f6603fb5ccdc4ea976d8e8620 Mon Sep 17 00:00:00 2001
From: 南骏 池 <chiffly@163.com>
Date: 星期二, 25 三月 2025 17:21:24 +0800
Subject: [PATCH] 1.首检检验查询、刷新检验 2.显示字段调整

---
 Scripts/config.js |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/Scripts/config.js b/Scripts/config.js
index efb568a..075e6d8 100644
--- a/Scripts/config.js
+++ b/Scripts/config.js
@@ -1,6 +1,7 @@
 锘�//var APIURL = "http://192.168.1.145:83/api/";
-var APIURL = "http://localhost:55640/api/";
-var APIURL_PC = "http://192.168.1.145:81/api/";
+var APIURL = "http://localhost:5204/api/";
+var APIURL_PC = "http://192.168.1.145:81/";
+var APIURL_IMAGE = APIURL_PC+"upload/";
 var ISNEEDLOGIN = true;
 String.prototype.trim = function () {
     return this.replace(/(^\s*)|(\s*$)/g, "");
@@ -71,13 +72,19 @@
  * @param锛歿string}     params          璇锋眰鍙傛暟,闈炲繀濉�
  * @param锛歿string}     variation       璇锋眰澶�,闈炲繀濉�
  **/
-Vue.prototype.AxiosHttp = (method, url, params = {}, isToken = true) => {
-    url = (APIURL + url);
+Vue.prototype.AxiosHttp = (method, url, params = {}, isToken = true, isPC =0) => {
+    if (isPC == 0)
+    {
+        url = (APIURL + url);
+    }
+    else{
+        url = (APIURL_PC + url);
+    }
     let headers = { 'Content-Type': 'application/json', }
     if (isToken) {
         var timestamp = (new Date()).getTime();
-        var token = "BasicAuth " + timestamp + "_" + Cookies.get('loginGuid');
-        headers['Authorization'] = token;
+        var token = Cookies.get('loginGuid')
+        headers['token'] = token;
     }
     if (method == 'get') {
         //   console.log("params")

--
Gitblit v1.9.3