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' : '모두' }} +