Merge pull request #6 from MR-L-2015/master

修复bug: 如果url具有?号带参数,缓存图片会失效,显示不出来。
This commit is contained in:
potato47 2019-07-03 19:19:56 +08:00 committed by GitHub
commit 3cb2cca68f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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">