mirror of
https://github.com/potato47/ccc-devtools.git
synced 2024-12-26 03:39:16 +00:00
修复bug: 如果url具有?号带参数,缓存图片会失效,显示不出来。
index.html <img :src="window.location.href + row.preview" style="max-height: 40px;max-width: 120px;" v-if="row.preview"> ============> <img :src="window.location.protocol + '//' + window.location.host + '/' + row.preview" style="max-height: 40px;max-width: 120px;" v-if="row.preview">
This commit is contained in:
parent
57f3105f8e
commit
e55daf7c1b
@ -193,7 +193,7 @@
|
|||||||
<Modal v-model="isShowCache" width="800" :mask-closable="false" :mask="false" scrollable @on-cancel="closeCachePanel()" :title="cacheTitle" footer-hide="true">
|
<Modal v-model="isShowCache" width="800" :mask-closable="false" :mask="false" scrollable @on-cancel="closeCachePanel()" :title="cacheTitle" footer-hide="true">
|
||||||
<i-table border :columns="cacheColumns" height="600" size="small" :data="cacheData" :loading="cacheDataLoading">
|
<i-table border :columns="cacheColumns" height="600" size="small" :data="cacheData" :loading="cacheDataLoading">
|
||||||
<template slot-scope="{ row, index }" slot="cache_preview">
|
<template slot-scope="{ row, index }" slot="cache_preview">
|
||||||
<img :src="window.location.href + row.preview" style="max-height: 40px;max-width: 120px;" v-if="row.preview">
|
<img :src="window.location.protocol + '//' + window.location.host + '/' + row.preview" style="max-height: 40px;max-width: 120px;" v-if="row.preview">
|
||||||
<div v-if="!row.preview" style="max-height: 40px;">_</div>
|
<div v-if="!row.preview" style="max-height: 40px;">_</div>
|
||||||
</template>
|
</template>
|
||||||
<template slot-scope="{ row, index }" slot="cache_action">
|
<template slot-scope="{ row, index }" slot="cache_action">
|
||||||
|
Loading…
Reference in New Issue
Block a user