|
|
@ -1,15 +1,15 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<div class="navbar"> |
|
|
|
<p class="breadcrumb-container"><img src="@/assets/loginImg/logo.png" |
|
|
|
style="width: 45px;height: 45px;margin-right: 10px;" />汇融云仓贷后监管平台</p> |
|
|
|
<p class="breadcrumb-container"><img src="@/assets/loginImg/logo2.png" |
|
|
|
style="width: 45px;height: 45px;margin-right: 10px;" />喜相随贸易</p> |
|
|
|
<!-- <h3 class="breadcrumb-container">汇融供应链贷后监管平台h3> --> |
|
|
|
<div class="right-menu"> |
|
|
|
<!-- <p>{{Orgname}} {{departmentName}} 欢迎, {{name}}</p>--> |
|
|
|
<p>欢迎您,{{name}}</p> |
|
|
|
<img src="@/assets/images/info.png"> |
|
|
|
<!-- <img src="@/assets/images/info.png"> --> |
|
|
|
<!-- <img src="@/assets/images/dy.png" @click="logout"> --> |
|
|
|
<span class="backToHome" @click="logout"><i class="el-icon-back"></i>返回首页</span> |
|
|
|
<span class="backToHome" @click="logout"><i class="el-icon-back"></i>退出登录</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<el-footer class="footer" height="40px">Copyright © {{ year }} 技术支持集团 All Rights Reserved</el-footer> |
|
|
@ -17,6 +17,11 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import { |
|
|
|
getStorage, |
|
|
|
removeStorage |
|
|
|
} from '@/utils/auth' |
|
|
|
import User from "@/api/User/login.js"; |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -38,8 +43,26 @@ |
|
|
|
methods: { |
|
|
|
logout() { |
|
|
|
// this.$router.push({ path: '/home' }) |
|
|
|
window.opener = null |
|
|
|
window.open('about:blank', '_top').close() |
|
|
|
// window.opener = null |
|
|
|
// window.open('about:blank', '_top').close() |
|
|
|
this.$confirm('确定要退出吗, 是否继续?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.$router.push({ |
|
|
|
path: '/login' |
|
|
|
}) |
|
|
|
// User.logout({ |
|
|
|
// token: getStorage() |
|
|
|
// }).then(res => { |
|
|
|
// removeStorage() |
|
|
|
// // this.$store.commit('user/SET_UESRINFO', '') |
|
|
|
// this.$router.push({ |
|
|
|
// path: '/login' |
|
|
|
// }) |
|
|
|
// }) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|