fix(测试跟踪): PDF预览请求前缀

This commit is contained in:
song-cc-rock 2023-02-23 10:43:21 +08:00 committed by jianxing
parent 2d20362fee
commit c817d112b8
1 changed files with 4 additions and 1 deletions

View File

@ -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: '',