diff --git a/src/api/policy.js b/src/api/policy.js index 8a2333c..4c871df 100644 --- a/src/api/policy.js +++ b/src/api/policy.js @@ -16,3 +16,51 @@ export function PolicyDetail(data) { }) } +export function PolicyUpdate(data) { + return request({ + url: `/gateway${policy}/PolicyUpdate`, + method: 'post', + data: { + param: { + auditStatus: data.auditStatus, + content: data.content, + id: data.id, + imgUrl: data.imgUrl, + intro: data.intro, + title: data.title, + titleUrl: data.titleUrl, + type: data.type + } + } + }) +} + +export function PolicyDelete(id) { + return request({ + url: `/gateway${policy}/PolicyDelete`, + method: 'post', + data: { + param: { + id: id + } + } + }) +} + +export function PolicyAdd(data) { + console.log(data) + return request({ + url: `/gateway${policy}/PolicyAdd`, + method: 'post', + data: { + param: { + content: data.content, + imgUrl: data.imgUrl, + intro: data.intro, + publishTime: data.publishTime, + title: data.title, + titleUrl: data.titleUrl + } + } + }) +} diff --git a/src/assets/404_images/touxiang.jpg b/src/assets/404_images/touxiang.jpg new file mode 100644 index 0000000..913bac4 Binary files /dev/null and b/src/assets/404_images/touxiang.jpg differ diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 0ca5cf6..a702483 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -7,23 +7,18 @@