From e75b54679fda94f3a81aef4ff60e5c1611bcccf2 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Fri, 24 Nov 2023 14:02:23 +0900 Subject: [PATCH] =?UTF-8?q?=ED=91=B8=EC=8B=9C=20=EB=B0=9C=EC=86=A1=20?= =?UTF-8?q?=EB=8C=80=EC=83=81=20=EC=A7=80=EC=A0=95=20UI=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/push.js | 12 ++++++-- src/views/Promotion/Push.vue | 55 ++++++++++++++++++++++++++++++++++-- 2 files changed, 62 insertions(+), 5 deletions(-) diff --git a/src/api/push.js b/src/api/push.js index 509763c..f62c250 100644 --- a/src/api/push.js +++ b/src/api/push.js @@ -1,11 +1,17 @@ import Vue from 'vue'; -async function sendPush(memberIds, title, message) { - return Vue.axios.post('/push', { +async function sendPush(memberIds, title, message, isAuth) { + const request = { memberIds, title, message - }) + } + + if (isAuth !== undefined && isAuth !== null && isAuth !== '') { + request.isAuth = isAuth + } + + return Vue.axios.post('/push', request) } export { sendPush } diff --git a/src/views/Promotion/Push.vue b/src/views/Promotion/Push.vue index a15a01d..0526a5c 100644 --- a/src/views/Promotion/Push.vue +++ b/src/views/Promotion/Push.vue @@ -9,6 +9,47 @@
+ + + + + + + + + + + + + + + + + + + + 내용: {{ message }} + + 본인인증 여부: {{ isAuth === 'true' ? 'O' : isAuth === 'false' ? 'X' : '모두' }} +