diff --git a/src/views/Promotion/PointPolicyView.vue b/src/views/Promotion/PointPolicyView.vue index e1b8246..7d74887 100644 --- a/src/views/Promotion/PointPolicyView.vue +++ b/src/views/Promotion/PointPolicyView.vue @@ -451,7 +451,6 @@ export default { async submit() { if (this.is_loading) return; - this.is_loading = true try { @@ -466,6 +465,7 @@ export default { 'endDate': this.point_policy.end_date } const res = await api.createPointPolicyList(request) + this.is_loading = false if (res.status === 200 && res.data.success === true) { this.cancel() @@ -480,12 +480,11 @@ export default { } catch (e) { this.notifyError("알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.") } - - this.is_loading = false }, async modify() { if (this.is_loading) return; + this.is_loading = true try { const request = {} @@ -507,6 +506,7 @@ export default { } const res = await api.updatePointPolicyList(this.selected_point_policy.id, request) + this.is_loading = false if (res.status === 200 && res.data.success === true) { this.cancel() @@ -520,8 +520,6 @@ export default { } catch (e) { this.notifyError("알 수 없는 오류가 발생했습니다. 다시 시도해 주세요.") } - - this.is_loading = false }, async getPointPolicyList() {