修改dashboard院士管理的入口错误

This commit is contained in:
jacky 2024-08-11 16:19:12 +08:00
parent 6af861ac09
commit 7e7140dd01
1 changed files with 5 additions and 3 deletions

View File

@ -13,7 +13,7 @@
<div class="gva-card-title">快捷入口</div>
<el-row :gutter="20">
<el-col v-for="(card, key) in toolCards" :key="key" :span="4" :xs="8" class="quick-entrance-items"
@click="toTarget(card.name)">
@click="toTarget(card.name, card.params)">
<div class="quick-entrance-item">
<div class="quick-entrance-item-icon" :style="{ backgroundColor: card.bg }">
<el-icon>
@ -59,6 +59,7 @@ const toolCards = ref([
label: '院士管理',
icon: 'star',
name: 'academician',
params: { kind: 1 },
color: '#ffd666',
bg: 'rgba(255, 214, 102,.3)'
},
@ -87,8 +88,9 @@ const toolCards = ref([
const router = useRouter()
const toTarget = (name) => {
router.push({ name })
const toTarget = (name, params) => {
if (name)
router.push({ name, params })
}
</script>