feat: detect if closeable
This commit is contained in:
parent
5099e43dee
commit
818ee3d3dd
1 changed files with 9 additions and 1 deletions
|
|
@ -220,6 +220,10 @@ function closeTab() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function closeAble() {
|
||||||
|
return window.opener !== null;
|
||||||
|
}
|
||||||
|
|
||||||
async function assignToProductServiceList() {
|
async function assignToProductServiceList() {
|
||||||
const ret = await productServiceStore.fetchProductGroup({
|
const ret = await productServiceStore.fetchProductGroup({
|
||||||
page: 1,
|
page: 1,
|
||||||
|
|
@ -911,7 +915,11 @@ function storeDataLocal() {
|
||||||
@click="closeTab()"
|
@click="closeTab()"
|
||||||
v-if="quotationFormState.mode === 'edit'"
|
v-if="quotationFormState.mode === 'edit'"
|
||||||
/>
|
/>
|
||||||
<CancelButton solid @click="closeTab()" v-else />
|
<CancelButton
|
||||||
|
solid
|
||||||
|
@click="closeTab()"
|
||||||
|
v-if="quotationFormState.mode === 'info' && closeAble()"
|
||||||
|
/>
|
||||||
<SaveButton
|
<SaveButton
|
||||||
v-if="
|
v-if="
|
||||||
quotationFormState.mode === 'create' ||
|
quotationFormState.mode === 'create' ||
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue