¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <NotAllow> |
| | | <div class="content"> |
| | | <img src="../assets/images/not-allow.png"> |
| | | <h2>æ æè®¿é®</h2> |
| | | <p>妿¨éè¦è®¿é®è¯¥ç³»ç»ï¼è¯·è系系ç»ç®¡çå</p> |
| | | <el-button @click="logout" type="primary">éåºç³»ç»</el-button> |
| | | </div> |
| | | </NotAllow> |
| | | </template> |
| | | |
| | | <script> |
| | | import NotAllow from '../components/common/NotAllow' |
| | | import { mapMutations } from 'vuex' |
| | | import { logout } from '@/api/system/common' |
| | | export default { |
| | | name: 'NoPermissions', |
| | | components: { NotAllow }, |
| | | methods: { |
| | | ...mapMutations(['setUserInfo']), |
| | | /** |
| | | * éåºç»å½ |
| | | */ |
| | | logout () { |
| | | logout() |
| | | .then(() => { |
| | | this.setUserInfo(null) |
| | | this.$cache.twoFA.removePassword() |
| | | this.$router.push({ name: 'login' }) |
| | | }) |
| | | .catch(e => { |
| | | this.$tip.apiFailed(e) |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | |
| | | </style> |