|
@@ -2,7 +2,7 @@ const qs = require('qs');
|
|
|
const $ = require("jquery");
|
|
|
const axios = require("axios")
|
|
|
var Utils = require('./rePromise');
|
|
|
-const baseUrl = "http://192.168.2.241:5858"
|
|
|
+const baseUrl = "http://192.168.2.236:5858"
|
|
|
//页面映射
|
|
|
const pageMap={
|
|
|
'YH-KZT':'console.html',
|
|
@@ -93,7 +93,7 @@ const getUrlArgObjectNew = function(name,srcUrl) {
|
|
|
}
|
|
|
|
|
|
const post = function (url, data) {
|
|
|
- const token = getCookie('accessToken')
|
|
|
+ const token = getCookie('accessToken') || localStorage.getItem('accessToken')
|
|
|
if(!token&&window.location.href.indexOf('login')==-1){
|
|
|
window.location.href = "../login.html"
|
|
|
}
|