|
@@ -8,20 +8,24 @@
|
|
|
v-for="item in NAV_LIST"
|
|
v-for="item in NAV_LIST"
|
|
|
:key="item.path"
|
|
:key="item.path"
|
|
|
:class="{ active: selectedKey === item.name }"
|
|
:class="{ active: selectedKey === item.name }"
|
|
|
- @click="handleNavClick(item)"
|
|
|
|
|
|
|
+ @click="item.name!=='Skyeye' && item.name!=='Tiansuo' && handleNavClick(item)"
|
|
|
>
|
|
>
|
|
|
- <span>{{ item.meta?.title }}</span>
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <a v-if="item.name==='Skyeye'" :href="skyeyeUrl" target="_blank" @click.stop>实时监控</a>
|
|
|
|
|
+ <a v-else-if="item.name==='Tiansuo'" :href="tiansuoUrl" target="_blank" @click.stop>物联集成</a>
|
|
|
|
|
+ <span v-else>{{ item.meta?.title }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</nav>
|
|
</nav>
|
|
|
|
|
+
|
|
|
<SwitchTenant v-if="userStore.info.tenantId === SYS_TENANT_ID" />
|
|
<SwitchTenant v-if="userStore.info.tenantId === SYS_TENANT_ID" />
|
|
|
<div class="platform__right">
|
|
<div class="platform__right">
|
|
|
- <div class="platform__right__search">
|
|
|
|
|
|
|
+ <!-- <div class="platform__right__search">
|
|
|
<el-input v-model="searchValue" placeholder="搜索您想了解的" class="input-with-icon" clearable>
|
|
<el-input v-model="searchValue" placeholder="搜索您想了解的" class="input-with-icon" clearable>
|
|
|
<template #prepend>
|
|
<template #prepend>
|
|
|
<img :src="searchIcon" alt="search" class="search-icon" @click="handleSearch" />
|
|
<img :src="searchIcon" alt="search" class="search-icon" @click="handleSearch" />
|
|
|
</template>
|
|
</template>
|
|
|
</el-input>
|
|
</el-input>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div> -->
|
|
|
<div class="platform__right__login">
|
|
<div class="platform__right__login">
|
|
|
<span @click="userStore.showLogin = true" v-if="!userStore.info?.id">登录</span>
|
|
<span @click="userStore.showLogin = true" v-if="!userStore.info?.id">登录</span>
|
|
|
<UserInfo v-else />
|
|
<UserInfo v-else />
|
|
@@ -61,7 +65,7 @@
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const currentRoute = useRoute();
|
|
const currentRoute = useRoute();
|
|
|
- const { title } = useGlobSetting();
|
|
|
|
|
|
|
+ const { title ,skyeyeUrl,tiansuoUrl} = useGlobSetting();
|
|
|
|
|
|
|
|
const handleNavClick = (item: { name: string; path: string }) => {
|
|
const handleNavClick = (item: { name: string; path: string }) => {
|
|
|
if (!item.path) {
|
|
if (!item.path) {
|