为比赛添加标签

This commit is contained in:
2024-07-02 20:06:50 +08:00
parent 922fc61ead
commit 60c1a495f2
7 changed files with 43 additions and 5 deletions

View File

@@ -23,16 +23,12 @@ async function handleDelete() {
emit("deleted")
}
function goDetail() {}
</script>
<template>
<n-space>
<n-button size="small" type="success" secondary @click="goEdit">
编辑
</n-button>
<n-button size="small" type="info" secondary @click="goDetail">
查看
</n-button>
<n-popconfirm @positive-click="handleDelete">
<template #trigger>
<n-button size="small" type="error" secondary>删除</n-button>

View File

@@ -39,6 +39,7 @@ async function init() {
announcement.title = res.data.title
announcement.content = res.data.content
announcement.visible = res.data.visible
announcement.tag = res.data.tag
announcement.top = res.data.top
}