【发布时间】:2021-07-07 12:38:55
【问题描述】:
小问题:
<file-pond
name="customImage"
ref="pond"
label-idle="Déposez votre image ici"
:allow-multiple="false"
accepted-file-types="image/jpeg, image/png"
server="http://localhost:3000'"
:files="custom.customImage"
@init="handleFilePondInit"
/>
是否可以动态设置服务器值? 例如:
v-server="apiUrl+'/api/v1/upload'"
【问题讨论】:
-
我已经用一些代码高亮编辑了您的答案,并将通常的
v-on替换为@和v-bind替换为:。这些是快捷方式,如下所示:vuejs.org/v2/guide/syntax.html#Shorthands 希望没问题,如果需要,请随时回滚。
标签: vue.js server nuxt.js filepond