添加遮罩效果

This commit is contained in:
wzy-warehouse
2026-04-12 22:07:00 +08:00
parent 5cfda702a1
commit 83f8fec3a4
8 changed files with 234 additions and 22 deletions
+4 -4
View File
@@ -6,9 +6,9 @@
<img :src="mainLogo" alt="西安应急智慧logo" id="main_logo" />
</div>
<div class="nav-list">
<router-link v-for="(item, index) in topNavMap" :key="index"
:to="{ name: item.name, query: item.query }" class="nav-item"
:class="{ 'active': isActive(item.query.identification) }">
<router-link @click="useViewerStore().setViewerLoadingCompleted(false)"
v-for="(item, index) in topNavMap" :key="index" :to="{ name: item.name, query: item.query }"
class="nav-item" :class="{ 'active': isActive(item.query.identification) }">
{{ item.title }}
</router-link>
</div>
@@ -42,7 +42,7 @@ const topNavMap = [
const isActive = (identification: number) => {
const targetId = identification.toString();
let currentId = route.query.identification;
if(!currentId) return targetId === '1'
if (!currentId) return targetId === '1'
if (Array.isArray(currentId)) currentId = currentId[0];
return currentId === targetId || route.query.identification === targetId;
};