diff --git a/src/api/link.js b/src/api/link.js index 81db9590..b513c5bf 100644 --- a/src/api/link.js +++ b/src/api/link.js @@ -19,6 +19,13 @@ linkApi.create = (link) => { }) } +linkApi.get = linkId => { + return service({ + url: `${baseUrl}/${linkId}`, + method: 'get' + }) +} + linkApi.update = (linkId, link) => { return service({ url: `${baseUrl}/${linkId}`, diff --git a/src/views/attachment/AttachmentList.vue b/src/views/attachment/AttachmentList.vue index 912150fd..e4672495 100644 --- a/src/views/attachment/AttachmentList.vue +++ b/src/views/attachment/AttachmentList.vue @@ -72,7 +72,6 @@ diff --git a/src/views/page/internal/LinkList.vue b/src/views/page/internal/LinkList.vue index b1444677..de6a8e3c 100644 --- a/src/views/page/internal/LinkList.vue +++ b/src/views/page/internal/LinkList.vue @@ -7,51 +7,29 @@ :md="10" :sm="24" :xs="24" - :style="{ 'padding-bottom': '12px' }" - > + :style="{ 'padding-bottom': '12px' }"> - + - - + + - + - - + + - + - 保存 + 保存 - 更新 - 返回添加 + 更新 + 返回添加 @@ -63,8 +41,7 @@ :md="14" :sm="24" :xs="24" - :style="{ 'padding-bottom': '12px' }" - > + :style="{ 'padding-bottom': '12px' }"> -