|
@@ -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"
|
|
|
}
|
|
@@ -341,8 +341,7 @@ function setDatePicker(picker1,picker2,mode,startDateDefault,endDateDefault){
|
|
|
}else if(mode == '2'){
|
|
|
startDate = new Date(`${year}-01-01`)
|
|
|
} else if(mode == 'default'){
|
|
|
- startDate = "-6d"
|
|
|
- endDate =new Date()
|
|
|
+ startDate = new Date(`${year}-01-01`)
|
|
|
}else {
|
|
|
startDate = startDateDefault || new Date()
|
|
|
endDate = endDateDefault || new Date()
|