Merge pull request '更新nav-tab标签首页可以关闭' (#27) from zwq into master
Reviewed-on: #27
This commit is contained in:
		@@ -636,6 +636,7 @@ img {
 | 
				
			|||||||
              line-height: 24px;
 | 
					              line-height: 24px;
 | 
				
			||||||
              border-radius: 5px;
 | 
					              border-radius: 5px;
 | 
				
			||||||
              background-color: rgba(239, 239, 239, 1);
 | 
					              background-color: rgba(239, 239, 239, 1);
 | 
				
			||||||
 | 
					              &:hover,
 | 
				
			||||||
              &.is-active {
 | 
					              &.is-active {
 | 
				
			||||||
                color: rgba(255, 255, 255, 1);
 | 
					                color: rgba(255, 255, 255, 1);
 | 
				
			||||||
                background-color: rgba(62, 142, 247, 1);
 | 
					                background-color: rgba(62, 142, 247, 1);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
 * @Author: zwq
 | 
					 * @Author: zwq
 | 
				
			||||||
 * @Date: 2023-07-13 15:31:21
 | 
					 * @Date: 2023-07-13 15:31:21
 | 
				
			||||||
 * @LastEditors: zwq
 | 
					 * @LastEditors: zwq
 | 
				
			||||||
 * @LastEditTime: 2023-07-19 16:34:06
 | 
					 * @LastEditTime: 2023-07-20 09:05:48
 | 
				
			||||||
 * @Description: 
 | 
					 * @Description: 
 | 
				
			||||||
-->
 | 
					-->
 | 
				
			||||||
<template>
 | 
					<template>
 | 
				
			||||||
@@ -71,9 +71,9 @@ export default {
 | 
				
			|||||||
    },
 | 
					    },
 | 
				
			||||||
    // tabs, 删除tab
 | 
					    // tabs, 删除tab
 | 
				
			||||||
    tabRemoveHandle (tabName) {
 | 
					    tabRemoveHandle (tabName) {
 | 
				
			||||||
      if (tabName === 'home') {
 | 
					      // if (tabName === 'home') {
 | 
				
			||||||
        return false
 | 
					      //   return false
 | 
				
			||||||
      }
 | 
					      // }
 | 
				
			||||||
      this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => item.name !== tabName)
 | 
					      this.$store.state.contentTabs = this.$store.state.contentTabs.filter(item => item.name !== tabName)
 | 
				
			||||||
      if (this.$store.state.contentTabs.length <= 0) {
 | 
					      if (this.$store.state.contentTabs.length <= 0) {
 | 
				
			||||||
        this.$store.state.sidebarMenuActiveName = this.$store.state.contentTabsActiveName = 'home'
 | 
					        this.$store.state.sidebarMenuActiveName = this.$store.state.contentTabsActiveName = 'home'
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user