|
@@ -65,6 +65,9 @@ const getUrlArgObject = function getQueryString(name) {
|
|
|
|
|
|
const post = function (url, data) {
|
|
const post = function (url, data) {
|
|
const token = getCookie('accessToken')
|
|
const token = getCookie('accessToken')
|
|
|
|
+ if(!token&&window.location.href.indexOf('login')==-1){
|
|
|
|
+ window.location.href = "../login.html"
|
|
|
|
+ }
|
|
return new Utils((resolve, reject) => {
|
|
return new Utils((resolve, reject) => {
|
|
$.ajax({
|
|
$.ajax({
|
|
method: 'post',
|
|
method: 'post',
|