-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
laravel 5.3.* zero rows problem #100
Comments
It works after changed response.body to response.data in the loadData method. Don't know what the problem is? |
@selmonal How did you import vue-resource? Via a |
@ratiw Same issue here. I'm loading vue-resource via require('vue-resource). |
@ratiw @selmonal Adding a interceptor to vue-resource will resolve it in the short term. Not sure how suitable this is as a fix due to the side effects.
|
@selmonal @WayneHarris What I see is the mismatch of vue-resource version. Before version 0.9, it uses Recently, @Jasper9041 has submitted a PR to switch from vue-resource v0.7 to v1.0.2. But I was unable to make it work because of the As I see that the problem you mentioned is based on the missing of ether Also, loading the different version in different place in the project might cause some issues. Please check for that as well. |
@ratiw Laravel 5.3 is using vue-resource ^0.9.3. Testing it now with ^1.0.2 but getting 401 Unauthorized issues using Laravel Passport for the API. Will let you know how I get on. |
@ratiw So to resolve the 401 when you update the vue-resource in Laravel to 1.0.2. You will need to update the bootstrap.js in Laravel to set the X-CSRF-TOKEN correctly.
Made a pull request to Laravel. |
@WayneHarris |
@WayneHarris Thanks for the help and the explaination. :) |
I have the same probleme,i got the json data, but it displays zero rows |
@a119347 Have you tried anything from above? |
Yes , but i used webpack and es6 , and no error appear. |
@a119347 This is the problem of using different version of vue-resource. It has nothing to do with webpack and es6. So, check the version of vue-resource you're using in your code first. |
First i and my partner use the 0.9.3, he display the data , but i can't , now i update the 1.0.2 |
Don't forget to |
i using vuetable v1.5.2 and vue-resource 0.9.3 now |
Recommend update to v1.5.3 and vue-resource 1.0.2, or downgrade vue-resource to v0.7.4. |
But my partners alsoe use the vuetable v1.5.2 and vue-resource 0.9.3 , he can display the data , I will try change the version thx |
i update to v1.5.3 and vue-resource1.0.3 it works |
Will update README to warn about this. Sorry, for the inconveniences. |
Hello
i've tested below but it displays zero rows.
Displaying 0 to 0 of 0 items
json data be like this
Thank you!
The text was updated successfully, but these errors were encountered: