Merge pull request #6500 from dataease/pr@dev@fix_panel-pic

refactor(仪表板): 修复部分图片不显示问题
This commit is contained in:
王嘉豪 2023-11-01 18:30:07 +08:00 committed by GitHub
commit dfaef37173
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@
<img
v-if="!showLink"
:style="imageAdapter"
:src="imgUrl"
:src="element.propValue"
>
<a
v-if="showLink"
@ -13,15 +13,13 @@
>
<img
:style="imageAdapter"
:src="imgUrl"
:src="element.propValue"
>
</a>
</div>
</template>
<script>
import { imgUrlTrans } from '@/components/canvas/utils/utils'
export default {
props: {
element: {
@ -35,9 +33,6 @@ export default {
}
},
computed: {
imgUrl() {
return imgUrlTrans(this.element.propValue)
},
showLink() {
return this.editMode === 'preview' && this.element && this.element.hyperlinks && this.element.hyperlinks.enable
},