You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I ran into the same problem like yours. It turns out to be the problem of my model definition. The task should have one important attribute: active, which should be int type and has default value 1. Otherwise no record will be shown.
To your model, it should be something like this:
{"id":1,"name":"B","description":"X", "active":1}
I have gone through the process of installing vue crud app and I have provided my api.
Here are the specific steps that I did
Altered the following files
API.js.
export default { url: 'http://127.0.0.1:8080', path: { prefix: 'api', storage: 'storage', upload: 'files/file-upload', }, }
Crud.vue
`
CRUD confguration
`
On the network it is returning my API with the following response
[{"id":1,"name":"B","description":"X"},{"id":2,"name":"A","description":"A"},{"id":3,"name":"C","description":"Z23"},{"id":4,"name":"Z","description":"Z23"},{"id":5,"name":"X","description":"Z21"},{"id":6,"name":"C","description":"Z23"},{"id":7,"name":"C","description":"Z112"},{"id":8,"name":"C","description":"Zzzx"},{"id":9,"name":"C","description":"Zsada"},{"id":10,"name":"C","description":"Zdsa"}]
However on the page it is returning no data available.
The text was updated successfully, but these errors were encountered: