refactor: 统一命名与主题色,我的页合并设置入口与缓存清理
This commit is contained in:
1 parent
e0cff93f0b
commit
4402bf26bc
83 files changed
+1517
-1780
No files matched your search
@@ -13,10 +13,10 @@
|
||||
use-slot
|
||||
@click="handleNavClick(child)"
|
||||
>
|
||||
<view class="work-grid__icon p-2">
|
||||
<view class="p-2">
|
||||
<image class="w-72rpx h-72rpx rounded-8rpx" :src="child.icon" />
|
||||
</view>
|
||||
<view class="work-grid__label">{{ child.title }}</view>
|
||||
<view>{{ child.title }}</view>
|
||||
</wd-grid-item>
|
||||
</wd-grid>
|
||||
</wd-card>
|
||||
@@ -28,7 +28,7 @@
|
||||
<script lang="ts" setup>
|
||||
import { computed } from "vue";
|
||||
import { useNavigation } from "@/composables/useNavigation";
|
||||
import { menuConfig } from "@/config/menu";
|
||||
import { workMenuGroups } from "@/config/work-menu";
|
||||
import { hasPermission as checkPermission } from "@/utils/permission";
|
||||
|
||||
definePage({
|
||||
@@ -50,7 +50,7 @@ const hasPermission = (perm: string) => {
|
||||
|
||||
// 根据权限过滤后的菜单列表
|
||||
const visibleGridList = computed(() => {
|
||||
return menuConfig
|
||||
return workMenuGroups
|
||||
.map((group) => ({
|
||||
...group,
|
||||
children: group.children.filter((item) => hasPermission(item.perm)),
|
||||
|
||||
Reference in new issue
Block a user