|
|
@@ -16,7 +16,7 @@
|
|
|
>
|
|
|
<el-menu-item index="1">
|
|
|
<a href="/video" style="text-decoration-line: none">
|
|
|
- <span style="color: #007bff">视频</span>
|
|
|
+ <span style="color: #007bff">分区</span>
|
|
|
</a>
|
|
|
</el-menu-item>
|
|
|
<el-menu-item index="2">
|
|
|
@@ -64,27 +64,15 @@
|
|
|
@click.native="goToProfile"
|
|
|
>我的帐号</el-dropdown-item>
|
|
|
<el-dropdown-item
|
|
|
- icon="el-icon-files"
|
|
|
+ icon="el-icon-collection"
|
|
|
class="size"
|
|
|
- @click.native="goToDisk"
|
|
|
- >我的网盘</el-dropdown-item>
|
|
|
+ @click.native="goToFavlist"
|
|
|
+ >收藏夹</el-dropdown-item>
|
|
|
<el-dropdown-item
|
|
|
icon="el-icon-s-data"
|
|
|
class="size"
|
|
|
@click.native="goToPost"
|
|
|
- >我的稿件
|
|
|
- </el-dropdown-item>
|
|
|
- <el-dropdown-item
|
|
|
- icon="el-icon-video-camera"
|
|
|
- class="size"
|
|
|
- @click.native="goToCam"
|
|
|
- >我的监控
|
|
|
- </el-dropdown-item>
|
|
|
- <el-dropdown-item
|
|
|
- icon="el-icon-s-shop"
|
|
|
- class="size"
|
|
|
- @click.native="goToMall"
|
|
|
- >我的商城
|
|
|
+ >历史记录
|
|
|
</el-dropdown-item>
|
|
|
<el-dropdown-item
|
|
|
icon="el-icon-s-home"
|
|
|
@@ -170,7 +158,7 @@
|
|
|
import { userMixin } from 'assets/js/mixin'
|
|
|
import { keywordSuggest } from '@/api/search'
|
|
|
import { getAuthedUser } from '@/utils/auth'
|
|
|
-import {getUnreadCount} from "@/api/user";
|
|
|
+import { getUnreadCount } from '@/api/user'
|
|
|
|
|
|
export default {
|
|
|
name: 'NavBar',
|
|
|
@@ -280,6 +268,14 @@ export default {
|
|
|
console.log('帐号注册')
|
|
|
},
|
|
|
// ****************************************************************************************************************
|
|
|
+ goToFavlist() {
|
|
|
+ const path = '/post/fav/video'
|
|
|
+ if (this.$route.path === path) {
|
|
|
+ this.$router.go(0)
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$router.push(path)
|
|
|
+ },
|
|
|
goToDisk() {
|
|
|
const path = '/disk'
|
|
|
if (this.$route.path === path) {
|
|
|
@@ -319,34 +315,38 @@ export default {
|
|
|
}
|
|
|
this.$router.push('/post')
|
|
|
},
|
|
|
- goToCam() {
|
|
|
- if (this.$route.path === '/cam') {
|
|
|
+ goToMessage() {
|
|
|
+ if (this.$route.path === '/my/message') {
|
|
|
this.$router.go(0)
|
|
|
return
|
|
|
}
|
|
|
- this.$router.push('/cam')
|
|
|
+ this.$router.push('/my/message')
|
|
|
},
|
|
|
- goToMall() {
|
|
|
- if (this.$route.path === '/mall') {
|
|
|
+ goToPublish() {
|
|
|
+ if (this.$route.path === '/post/publish/video') {
|
|
|
this.$router.go(0)
|
|
|
return
|
|
|
}
|
|
|
- this.$router.push('/mall')
|
|
|
+ this.$router.push('/post/publish/video')
|
|
|
},
|
|
|
- goToMessage() {
|
|
|
- if (this.$route.path === '/my/message') {
|
|
|
+ // ************************************************************************
|
|
|
+ // 我的监控
|
|
|
+ goToCam() {
|
|
|
+ if (this.$route.path === '/cam') {
|
|
|
this.$router.go(0)
|
|
|
return
|
|
|
}
|
|
|
- this.$router.push('/my/message')
|
|
|
+ this.$router.push('/cam')
|
|
|
},
|
|
|
- goToPublish() {
|
|
|
- if (this.$route.path === '/post/publish/video') {
|
|
|
+ // 我的商城
|
|
|
+ goToMall() {
|
|
|
+ if (this.$route.path === '/mall') {
|
|
|
this.$router.go(0)
|
|
|
return
|
|
|
}
|
|
|
- this.$router.push('/post/publish/video')
|
|
|
+ this.$router.push('/mall')
|
|
|
}
|
|
|
+ // ************************************************************************
|
|
|
}
|
|
|
}
|
|
|
</script>
|