|
@ -27,7 +27,7 @@
|
27
|
27
|
import API from '@/api'
|
28
|
28
|
import { mapMutations } from 'vuex'
|
29
|
29
|
import { getRouteNameByUrl } from '@/utils'
|
30
|
|
import isEmpty from 'lodash/isEmpty'
|
|
30
|
import isNil from 'lodash/isNil'
|
31
|
31
|
export default {
|
32
|
32
|
data () {
|
33
|
33
|
return {
|
|
@ -63,9 +63,9 @@
|
63
|
63
|
if (/^\/n\/.*$/.test(route.path)) {
|
64
|
64
|
var tab = this.$store.state.contentTabs.filter(item => item.name === route.name)[0]
|
65
|
65
|
// tab不存在, 先添加
|
66
|
|
if (isEmpty(tab)) {
|
|
66
|
if (isNil(tab)) {
|
67
|
67
|
var menuNav = this.getMenuNavByRouteName(route.name, this.$store.state.menuNavList)
|
68
|
|
if (!isEmpty(menuNav)) {
|
|
68
|
if (!isNil(menuNav)) {
|
69
|
69
|
tab = {
|
70
|
70
|
id: menuNav.menuId,
|
71
|
71
|
name: route.name,
|