Mój komponent Vue zawiera obrazy. Chcę wczytać się później, więc najpierw muszę ustawić src obrazów na mały obraz.Statyczne zdjęcie src w szablonie Vue.js
<template>
<div v-for="item in portfolioItems">
<a href="#{{ item.id }}">
<img
data-original="{{ item.img }}"
v-bind:src="/static/img/clear.gif"
class="lazy" alt="">
</a>
</div>
</template>
daje mi kilka błędów, jak:
[Vue warn]: Invalid expression. Generated function body: /scope.static/scope.img/scope.clear.gif vue.common.js:1014[Vue
[Vue warn]: Error when evaluating expression "/static/img/clear.gif": TypeError: Cannot read property 'call' of undefined (found in component:)
webpack.config.js: module.exports = { // ... build: { assetsPublicPath: „/ ” assetsSubDirectory: 'statyczne' } }