|
@@ -141,6 +141,10 @@ const getUrlArgObjectNew = function (name, srcUrl) {
|
|
window.abortAjax = '';
|
|
window.abortAjax = '';
|
|
|
|
|
|
const post = function (url, data, opts) {
|
|
const post = function (url, data, opts) {
|
|
|
|
+ if(localStorage.getItem('toLogin')==='1'){
|
|
|
|
+ //如果前面已经被标记为登录失效,接下来的请求都不发送
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
let isPlacefile = getCookie('isPlacefile') || 1;
|
|
let isPlacefile = getCookie('isPlacefile') || 1;
|
|
const token = localStorage.getItem('accessToken');
|
|
const token = localStorage.getItem('accessToken');
|
|
if (!token && window.location.href.indexOf('login') == -1) {
|
|
if (!token && window.location.href.indexOf('login') == -1) {
|