代码
<template>
<div>
<vue-dropzone
ref="myVueDropzone"
:options="dropzoneOptions"
:useCustomSlot=true
v-on:vdropzone-success="response">
<div class="dropzone-custom-content" id="custom">
<h3 class="dropzone-custom-title">Drag & Drop</h3>
<div class="subtitle">...or click to select a file from your computer</div>
</div>
</vue-dropzone>
<div>
<div v-bind:style="{ color: `${msg.font_color}`}">
<p>{{msg.info_text}}</p>
</div>
<p>{{msg.rate_adult}}</p>
<p>{{msg.part_name}} {{msg.rate_part}}</p>
<img :src="require(`../../static/dst/${msg.file_name}`)">
</div>
</div>
</template>
插入require语句后,放置区消失。
有解决方案吗?
清除require语句不会加载图像。