Skip to content

Commit 1784228

Browse files
committed
support more image types
1 parent 508ac27 commit 1784228

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

console/atest-ui/src/views/TestCase.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ const renameTestCase = (name: string) => {
13861386
</div>
13871387
<div v-else>
13881388
<Codemirror v-if="!isResponseFile" v-model="testResult.bodyText"/>
1389-
<img v-if="currentContentType === 'image/png'" :src="currentImageContent" style="max-width: 100%; max-height: 500px;"/>
1389+
<img v-if="currentContentType.startsWith('image')" :src="currentImageContent" style="max-width: 100%; max-height: 500px;"/>
13901390
<div v-else-if="isResponseFile" style="padding-top: 10px;">
13911391
<el-row>
13921392
<el-col :span="10">

0 commit comments

Comments
 (0)