Quasar: QImg not work "src" for img to the project folder

Created on 11 Nov 2019  路  1Comment  路  Source: quasarframework/quasar

Describe the bug
I want to use QImg with images inside the project folder too, but it doesn't work.

Example
<q-img src="../../assets/logo-500.png" style="width: 500px" spinner-color="white"> <template v-slot:error> <div class="absolute-full flex flex-center bg-negative text-white"> Cannot load image </div> </template> </q-img>

bug

Most helpful comment

Use the image from statics. Check https://quasar.dev/vue-components/img#QImg-API - Model / src

>All comments

Use the image from statics. Check https://quasar.dev/vue-components/img#QImg-API - Model / src

Was this page helpful?
0 / 5 - 0 ratings