vue-datamaps icon indicating copy to clipboard operation
vue-datamaps copied to clipboard

Directory error

Open a0m0rajab opened this issue 5 years ago • 0 comments

I was building my project with nuxtjs after changing the router directory to /something/ it did not work.

The problem was caused because of the reference to the files, in the component you have used "/data/" which returns to the root of the directory instead of the sub-directory that related to the file.

the fix was to delete the first slash "data/"

I have changed the Datamaps.vue draw function:

const response = await fetch( this.geograpphyConfigOptions.dataUrl || "data/${this.scope}.${this.dataType}"

a0m0rajab avatar Oct 12 '20 18:10 a0m0rajab