fix : 时间戳
This commit is contained in:
parent
40cc5fc5b9
commit
066fec4e8a
|
|
@ -307,14 +307,15 @@ user-scalable: 用户是否能缩放页面 -->
|
||||||
},
|
},
|
||||||
showImage(data){
|
showImage(data){
|
||||||
let that = this;
|
let that = this;
|
||||||
|
let timer = new Date().getTime();
|
||||||
if(data.证书地址!==null){
|
if(data.证书地址!==null){
|
||||||
that.imgSrc = 'https://testsearch.ctc.ac.cn'+data.证书地址;
|
that.imgSrc = 'https://testsearch.ctc.ac.cn'+data.证书地址+'?'+timer;
|
||||||
that.showImg = true;
|
that.showImg = true;
|
||||||
}else{
|
}else{
|
||||||
axios.get(`https://testsearch.ctc.ac.cn/api/edu/certificate/${data.id}/`).then(res=>{
|
axios.get(`https://testsearch.ctc.ac.cn/api/edu/certificate/${data.id}/`).then(res=>{
|
||||||
if(res.data){
|
if(res.data){
|
||||||
let data1 = res.data.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;
|
that.showImg = true;
|
||||||
}else{
|
}else{
|
||||||
that.warningTxtx='暂未查询到您的相关证书!'
|
that.warningTxtx='暂未查询到您的相关证书!'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue