fix: 修复授权被删除后,无法清空的bug

pull/273/head
xiaojunnuo 2024-12-10 17:22:43 +08:00
parent b7f5740c57
commit b45977c29a
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<template>
<div class="access-selector">
<span v-if="target?.name" class="mr-5 cd-flex-inline">
<a-tag class="mr-5" color="green">{{ target.name }}</a-tag>
<span v-if="modelValue" class="mr-5 cd-flex-inline">
<a-tag class="mr-5" color="green">{{ target.name || modelValue }}</a-tag>
<fs-icon class="cd-icon-button" icon="ion:close-circle-outline" @click="clear"></fs-icon>
</span>
<span v-else class="mlr-5 text-gray">{{ placeholder }}</span>