|  | @@ -21,7 +21,8 @@
 | 
	
		
			
				|  |  |        <span v-else>森语</span>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |        <user-menu :theme="theme"/>
 | 
	
		
			
				|  |  | -       <a href="http://www.myfitt.cn:18086"  target="_top" style="color:white;margin-left: 21px;float: right;">切换OA系统</a>
 | 
	
		
			
				|  |  | +       <!-- <a href="http://www.myfitt.cn:18086"  target="_top" style="color:white;margin-left: 21px;float: right;">切换OA系统</a> -->
 | 
	
		
			
				|  |  | +       <a @click="handleLogout1" target="_top" style="color:white;float: right;margin-left: 21px" >切换OA系统</a>
 | 
	
		
			
				|  |  |      </div>
 | 
	
		
			
				|  |  |      <!-- 顶部导航栏模式 -->
 | 
	
		
			
				|  |  |      <div v-else :class="['top-nav-header-index', theme]">
 | 
	
	
		
			
				|  | @@ -54,6 +55,8 @@
 | 
	
		
			
				|  |  |    import SMenu from '../menu/'
 | 
	
		
			
				|  |  |    import Logo from '../tools/Logo'
 | 
	
		
			
				|  |  |    import { mixin } from '@/utils/mixin.js'
 | 
	
		
			
				|  |  | +  import { logout } from "@/api/login"
 | 
	
		
			
				|  |  | + import { mapActions, mapGetters,mapState } from 'vuex'
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    export default {
 | 
	
		
			
				|  |  |      name: 'GlobalHeader',
 | 
	
	
		
			
				|  | @@ -126,6 +129,21 @@
 | 
	
		
			
				|  |  |        // update-end--author:sunjianlei---date:20190508------for: 顶部导航栏过长时显示更多按钮-----
 | 
	
		
			
				|  |  |      },
 | 
	
		
			
				|  |  |      methods: {
 | 
	
		
			
				|  |  | +      ...mapActions(["Logout2"]),
 | 
	
		
			
				|  |  | +        handleLogout1() {
 | 
	
		
			
				|  |  | +          
 | 
	
		
			
				|  |  | +          const that = this
 | 
	
		
			
				|  |  | +          return that.Logout2({}).then(() => {
 | 
	
		
			
				|  |  | +            window.location.href="/";
 | 
	
		
			
				|  |  | +            //window.location.reload()
 | 
	
		
			
				|  |  | +            
 | 
	
		
			
				|  |  | +          }).catch(err => {
 | 
	
		
			
				|  |  | +            that.$message.error({
 | 
	
		
			
				|  |  | +              title: '错误',
 | 
	
		
			
				|  |  | +              description: err.message
 | 
	
		
			
				|  |  | +            })
 | 
	
		
			
				|  |  | +          })
 | 
	
		
			
				|  |  | +        },
 | 
	
		
			
				|  |  |        handleScroll() {
 | 
	
		
			
				|  |  |          if (this.autoHideHeader) {
 | 
	
		
			
				|  |  |            let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop
 |