feat: kkfile增加强制刷新缓存参数
This commit is contained in:
@@ -3,7 +3,7 @@ import { USER_INFO } from '../store/mutation-types'
|
||||
import { Base64 } from 'js-base64'
|
||||
import md5 from 'md5'
|
||||
|
||||
function fillZero (str) {
|
||||
function fillZero(str) {
|
||||
let realNum
|
||||
if (str < 10) {
|
||||
realNum = '0' + str
|
||||
@@ -13,7 +13,7 @@ function fillZero (str) {
|
||||
return realNum
|
||||
}
|
||||
|
||||
export function dealUrl (fileUrl) {
|
||||
export function dealUrl(fileUrl) {
|
||||
const userInfo = Vue.ls.get(USER_INFO)
|
||||
// 获取当前时间
|
||||
const date = new Date()
|
||||
@@ -31,7 +31,7 @@ export function dealUrl (fileUrl) {
|
||||
// 路径增加时间戳
|
||||
const timestamp = new Date().getTime()
|
||||
fileUrl += `&time=${timestamp}&type=kkfile`
|
||||
return `${window._CONFIG.onlinePreviewDomainURL}?url=${encodeURIComponent(Base64.encode(fileUrl))}&watermarkTxt=${encodeURIComponent(watermarkTxt)}&watermarkSign=${watermarkSign}`
|
||||
return `${window._CONFIG.onlinePreviewDomainURL}?forceUpdatedCache=true&url=${encodeURIComponent(Base64.encode(fileUrl))}&watermarkTxt=${encodeURIComponent(watermarkTxt)}&watermarkSign=${watermarkSign}`
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user