|
|
@@ -26,7 +26,14 @@
|
|
|
/>
|
|
|
<Button icon="pi pi-search" @click="handleSearch" label="搜索" size="small" severity="secondary" />
|
|
|
<Button icon="pi pi-refresh" @click="handleRefresh" label="刷新" size="small" />
|
|
|
- <Button icon="pi pi-plus" @click="openAddDialog" label="新增链接" size="small" severity="success" />
|
|
|
+ <Button
|
|
|
+ v-if="isAdmin || isTeam"
|
|
|
+ icon="pi pi-plus"
|
|
|
+ @click="openAddDialog"
|
|
|
+ label="新增链接"
|
|
|
+ size="small"
|
|
|
+ severity="success"
|
|
|
+ />
|
|
|
<div class="flex-1"></div>
|
|
|
</div>
|
|
|
|
|
|
@@ -336,6 +343,7 @@ const teamStore = useTeamStore()
|
|
|
const userStore = useUserStore()
|
|
|
|
|
|
const isAdmin = inject('isAdmin')
|
|
|
+const isTeam = inject('isTeam')
|
|
|
|
|
|
// 表格数据
|
|
|
const tableData = ref({
|