Skip to content

Commit

Permalink
优化tags
Browse files Browse the repository at this point in the history
  • Loading branch information
iotzzh committed May 2, 2022
1 parent d333663 commit 30e41b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
9 changes: 2 additions & 7 deletions src/layout/verticalLayout/components/navigation_bar/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: zzh
* @Date: 2022-02-25 09:55:19
* @LastEditors: zzh
* @LastEditTime: 2022-05-02 22:53:56
* @LastEditTime: 2022-05-02 22:56:32
* @Description: 导航栏,包含折叠,最大化,个人信息
* @FilePath: \zh-admin\src\layout\verticalLayout\components\navigation_bar\Index.vue
-->
Expand All @@ -24,12 +24,7 @@
</div>
<template #dropdown>
<el-dropdown-menu>
<router-link to="/dashboard">
<el-dropdown-item>
个人信息
</el-dropdown-item>
</router-link>
<router-link to="/dashboard">
<router-link to="/">
<el-dropdown-item>
退出
</el-dropdown-item>
Expand Down
4 changes: 3 additions & 1 deletion src/layout/verticalLayout/components/tags_view/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ const handleTags = (command: string) => {
const activeViewPath: any = router.currentRoute.value.meta.fatherPath ? router.currentRoute.value.meta.fatherPath : router.currentRoute.value.fullPath;
const activeView: any = cachedViews.value.find(x => x.fullPath === activeViewPath);
const indexView:any = cachedViews.value.find(x => x.fullPath === '/index');
store.updateCachedViews([ indexView, activeView ]);
indexView.fullPath === activeView.fullPath ?
store.updateCachedViews([ indexView ]) :
store.updateCachedViews([ indexView, activeView ]);
router.push(activeViewPath);
} else if (command === 'all') {
const indexView:any = cachedViews.value.find(x => x.fullPath === '/index');
Expand Down

0 comments on commit 30e41b9

Please # to comment.