No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    q-img, cannon get image from local folder

    Help
    2
    2
    897
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      edd last edited by

      q-img, cannon get image from local folder, from http:// working good
      I`ve tried src="…/statics/item1.png" and src="~statics/item1.png" , src=“statics/item1.png”
      and :src=“url” ,
      data () {
      return {
      url: ‘…/statics/item1.png’
      }
      }
      Can anybody help?

      1 Reply Last reply Reply Quote 0
      • M
        mKomo last edited by mKomo

        Use

        ../statics/img.jpg

        Note this depends on how deep in your file tree you are, if your 2 folders deep then you need ../../statics/img.jpg and so on

        Your relative file path is wrong. If your using something like VS code , I imagine there’s a way to get the relative path

        1 Reply Last reply Reply Quote 0
        • First post
          Last post