初始化项目
This commit is contained in:
@@ -6,13 +6,6 @@
|
||||
</div>
|
||||
<div class="tabs-container">
|
||||
<div class="tabs-left">
|
||||
<div
|
||||
class="tab-item"
|
||||
:class="{ active: isHome }"
|
||||
@click="goHome"
|
||||
>
|
||||
<span>首页</span>
|
||||
</div>
|
||||
<div
|
||||
class="tab-item"
|
||||
v-for="item in allTabs"
|
||||
@@ -64,14 +57,9 @@ const getTitle = (title) => {
|
||||
};
|
||||
|
||||
const isHome = computed(() => {
|
||||
return route.path === '/bigScreen' || route.path === '/';
|
||||
return route.path === '/bigScreen/home' || route.path === '/';
|
||||
});
|
||||
|
||||
const goHome = () => {
|
||||
screenTitle.value = HOME_TITLE;
|
||||
router.push('/bigScreen/home').catch(() => {});
|
||||
};
|
||||
|
||||
const isCurrentTab = (routePath) => {
|
||||
return route.path === routePath;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user