页面优化

This commit is contained in:
李寻欢 2024-02-03 15:59:21 +08:00
parent 79e075a5e7
commit d3c074090f

View File

@ -1,7 +1,8 @@
<script setup lang="ts">
import { onMounted, ref } from "vue";
import {
AiAssistantResult, deleteAiAssistant,
AiAssistantResult,
deleteAiAssistant,
getAllAiAssistant,
saveAiAssistant
} from "@/api/assistant";
@ -133,7 +134,13 @@ onMounted(() => {
>
{{ item.edit ? "取消" : "编辑" }}
</el-button>
<el-button v-if="!item.edit" link type="danger" @click="deleteAssistantHandle(item.id)">删除</el-button>
<el-button
v-if="!item.edit"
link
type="danger"
@click="deleteAssistantHandle(item.id)"
>删除</el-button
>
<el-button
v-else
link