fix: Fixed an issue where no default button is set for groups (#8217)

This commit is contained in:
ssongliu 2025-03-21 18:49:25 +08:00 committed by GitHub
parent 49d42061be
commit 818ef0e1f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@
</el-button>
<el-button
link
v-if="hideDefaultButton && !row.edit && !row.isDefault && !row.isDelete"
v-if="!hideDefaultButton && !row.edit && !row.isDefault && !row.isDelete"
type="primary"
@click="setDefault(row)"
>

View file

@ -76,7 +76,7 @@
<OpDialog ref="opRef" @search="search"></OpDialog>
<OperateDialog @search="search" ref="dialogRef" />
<GroupDialog @search="loadGroupOptions" :hideDefaultButton="false" ref="dialogGroupRef" />
<GroupDialog @search="loadGroupOptions" ref="dialogGroupRef" />
<CodemirrorDrawer ref="myDetail" />
<TerminalDialog ref="runRef" />
</div>
@ -120,7 +120,7 @@ const groupOptions = ref();
const dialogGroupRef = ref();
const onOpenGroupDialog = () => {
dialogGroupRef.value!.acceptParams({ type: 'script' });
dialogGroupRef.value!.acceptParams({ type: 'script', hideDefaultButton: true });
};
const dialogRef = ref();