diff --git a/src/api/link.js b/src/api/link.js index 73774984..3c077ce1 100644 --- a/src/api/link.js +++ b/src/api/link.js @@ -19,6 +19,14 @@ linkApi.create = (link) => { }) } +linkApi.update = (linkId, link) => { + return service({ + url: `${baseUrl}/${linkId}`, + data: link, + method: 'put' + }) +} + linkApi.delete = linkId => { return service({ url: `${baseUrl}/${linkId}`, diff --git a/src/views/page/internal/LinkList.vue b/src/views/page/internal/LinkList.vue index 56bd1bb9..ee4729f4 100644 --- a/src/views/page/internal/LinkList.vue +++ b/src/views/page/internal/LinkList.vue @@ -2,29 +2,33 @@