fix : 时间戳

This commit is contained in:
shijing 2023-09-01 15:35:10 +08:00
parent 40cc5fc5b9
commit 066fec4e8a
1 changed files with 3 additions and 2 deletions

View File

@ -307,14 +307,15 @@ user-scalable: 用户是否能缩放页面 -->
},
showImage(data){
let that = this;
let timer = new Date().getTime();
if(data.证书地址!==null){
that.imgSrc = 'https://testsearch.ctc.ac.cn'+data.证书地址;
that.imgSrc = 'https://testsearch.ctc.ac.cn'+data.证书地址+'?'+timer;
that.showImg = true;
}else{
axios.get(`https://testsearch.ctc.ac.cn/api/edu/certificate/${data.id}/`).then(res=>{
if(res.data){
let data1 = res.data.data;
that.imgSrc = 'https://testsearch.ctc.ac.cn'+data1.证书地址;
that.imgSrc = 'https://testsearch.ctc.ac.cn'+data1.证书地址+'?'+timer;
that.showImg = true;
}else{
that.warningTxtx='暂未查询到您的相关证书!'