fix(测试跟踪): PDF预览请求前缀
This commit is contained in:
parent
3f8060fc20
commit
3d72d0af67
|
@ -4,7 +4,7 @@
|
|||
<img :src="url" :alt="$t('test_track.case.img_loading_fail')" style="width: 100%;height: 100%;"
|
||||
v-if="file.type === 'JPG' || file.type === 'JPEG' || file.type === 'PNG'">
|
||||
<div v-if="file.type === 'PDF'">
|
||||
<test-case-pdf-view-base-js :pdf-url="'/attachment/preview/' + this.file.id + '/' + this.file.isLocal"/>
|
||||
<test-case-pdf-view-base-js :pdf-url="url"/>
|
||||
</div>
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
@ -35,6 +35,9 @@ export default {
|
|||
this.dialogVisible = true;
|
||||
this.url = generateModuleUrl('/attachment/preview/' + this.file.id + '/' + this.file.isLocal);
|
||||
},
|
||||
setModulePrefix(url) {
|
||||
return generateModuleUrl(url);
|
||||
},
|
||||
close() {
|
||||
this.file = {
|
||||
id: '',
|
||||
|
|
Loading…
Reference in New Issue