mannyyang / vuetable-3

data table simplify! -- datatable component for Vue 2.x. An updated fork of the one built by ratiw as that seemed to be unmaintained. See documentation at
https://mannyyang.github.io/vuetable-3/
MIT License
23 stars 4 forks source link

Not working when API url has/multiple/parts/divided/by/slash #7

Open glaggia-larus opened 4 years ago

glaggia-larus commented 4 years ago

As in the title, I'm having some issues with the table, the situation is this:

when api-url is http://localhost:8080/agent the call the table make is to this endpoint: http://localhost:8080/agent?sort=name&order=asc&page=1&per_page=10 and everything goes smooth.

if I use as api-url this: http://localhost:8080/agent/table the call the table make is to this endpoint: http://localhost:8080/agent/table?sort=name&order=asc&page=1&per_page=10 as expected, but this fails, in the developer console I can see that Chrome shows it as "failed to load response data"

But if I open a new chrome window and copy-paste the Request URL called my backend answer correctly. I can't understand the reason.

At last, I tried a @GetMapper("agenttable") and everything went smooth, it seems the problem is with the two/part URL.

mannyyang commented 4 years ago

Hmm that's strange, any chance you can share the issue you're facing in a codesandbox?