1. require 引入
<template>
<img :src="require('@/images/lokka.png')">
</template>
<script>
export default {
data () {
return {
}
}
}
</script>
2. import 引入
<template>
<img :src="imageSrc">
</template>
<script>
import img from '@/images/lokka.png'
export default {
data () {
return {
imageSrc: img
}
}
}
</script>