| | |
| | | <div class="common-header"> |
| | | <div class="header"> |
| | | <div class="logo"> |
| | | <div> 华晟园区</div> |
| | | <div>{{title}}</div> |
| | | <!-- <div class="title-en">Diagnosis of Intelligent Manufacturing Integrated Service Platfrom</div> --> |
| | | </div> |
| | | <div class="user"> |
| | |
| | | }, |
| | | data () { |
| | | return { |
| | | title: process.env.VUE_APP_TITLE, |
| | | visible: { |
| | | // 修改密码 |
| | | changePwd: false |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | ...mapMutations(['setUserInfo', 'switchCollapseMenu']), |
| | | ...mapMutations(['setUserInfo', 'switchCollapseMenu', 'clearUserInfo']), |
| | | // 修改密码 |
| | | changePwd () { |
| | | this.visible.changePwd = true |
| | |
| | | logout () { |
| | | logout() |
| | | .then(() => { |
| | | this.setUserInfo(null) |
| | | this.$router.push({ name: 'login' }) |
| | | this.clearUserInfo() |
| | | // window.location.href = process.env.VUE_APP_CONTEXT_PATH |
| | | // this.$router.push({ name: 'login' }) |
| | | window.location.reload() |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |