feat: 小调整

This commit is contained in:
meilin.huang
2022-11-07 21:57:51 +08:00
parent fa37937410
commit 9e67032280
180 changed files with 1515 additions and 131 deletions

View File

@@ -5,19 +5,19 @@ window.globalConfig = {
}
// index.html添加百秒级时间戳防止被浏览器缓存
!function(){
!function () {
let t = "t=" + new Date().getTime().toString().substring(0, 8)
let search = location.search;
let m = search && search.match(/t=\d*/g)
if (m[0]){
if( m[0] !== t){
if (m[0]) {
if (m[0] !== t) {
location.search = search.replace(m[0], t)
}
} else {
if(search.indexOf('?') > -1){
location.search = search + '&'+t
}else{
if (search.indexOf('?') > -1) {
location.search = search + '&' + t
} else {
location.search = t
}
}