test #72

Merged
klaus merged 5 commits from test into main 2025-05-20 07:21:28 +00:00
1 changed files with 3 additions and 5 deletions
Showing only changes of commit 0aff527266 - Show all commits

View File

@ -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() {