Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

simple-crud writes data but does not show it #95

Open
@xbln

Description

For testing purposes I created a json-file db.json with no data like this:
{ "tasks": [ { } ] }

I also created a file routes.json
{ "/api/demo/tasks": "/tasks" }

I than started a json api server with json-server db.json on default port 3000

I changed 'url:' in api.js to url: 'http://127.0.0.1:3000' and ran vue-crud (simple-crud) by npn run serve
The vue-crud page displays with no errors. I add a record with the + symbol, the json-server accepts it with 201 and POST /api/demo/tasks 201 27.237 ms - 92. The db.json file got the record as expected:
{ "tasks": [ { "name": "test", "description": "this is a test record", "apiId": "demo", "id": 1 } ] }

The problem is, that vue-crud does not show this (or any) record. Refreshing does not help, the list stays beeing empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /