From 818ee3d3ddedd723f7f58308152d726b31f84c33 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Fri, 18 Oct 2024 13:34:45 +0700 Subject: [PATCH] feat: detect if closeable --- src/pages/05_quotation/QuotationForm.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index aee23b3b..c30d3940 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -220,6 +220,10 @@ function closeTab() { } } +function closeAble() { + return window.opener !== null; +} + async function assignToProductServiceList() { const ret = await productServiceStore.fetchProductGroup({ page: 1, @@ -911,7 +915,11 @@ function storeDataLocal() { @click="closeTab()" v-if="quotationFormState.mode === 'edit'" /> - +