|
@@ -22,7 +22,7 @@
|
|
<el-button type="primary" size="small" @click="resetPwd">修改密码</el-button>
|
|
<el-button type="primary" size="small" @click="resetPwd">修改密码</el-button>
|
|
<el-button type="warning" size="small" @click="logout">退出登录</el-button>
|
|
<el-button type="warning" size="small" @click="logout">退出登录</el-button>
|
|
</div>
|
|
</div>
|
|
- <a href="https://117.78.49.164:15001/index58" style="border-top: 1px solid #334780;"><i class="el-icon-s-home"></i>返回首页</a>
|
|
|
|
|
|
+ <a @click="backToMainPage" style="border-top: 1px solid #334780;"><i class="el-icon-s-home"></i>返回首页</a>
|
|
<!-- <a href="#"><i class="el-icon-monitor"></i>管理系统</a>-->
|
|
<!-- <a href="#"><i class="el-icon-monitor"></i>管理系统</a>-->
|
|
</div>
|
|
</div>
|
|
<div slot="reference" style="text-align: center; width:4rem;height:3rem;">
|
|
<div slot="reference" style="text-align: center; width:4rem;height:3rem;">
|
|
@@ -69,6 +69,15 @@ import { getUserProfile } from "@/api/system/user";
|
|
this.getUser()
|
|
this.getUser()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ backToMainPage(){
|
|
|
|
+ let href = window.location.href
|
|
|
|
+ let protacal = href.substr(0,href.indexOf("://")+3)
|
|
|
|
+ let mo = href.lastIndexOf(":") > 6 ? href.lastIndexOf(":") : href.lastIndexOf("/")
|
|
|
|
+ let ip = href.substr(href.indexOf("://")+3,mo);
|
|
|
|
+ let url =href.substr(0,mo)
|
|
|
|
+ let toUrl = url +":15001/index58"
|
|
|
|
+ window.location.href = toUrl
|
|
|
|
+ },
|
|
getUser(){
|
|
getUser(){
|
|
getUserProfile().then(response => {
|
|
getUserProfile().then(response => {
|
|
this.nickName=response.data.nickName
|
|
this.nickName=response.data.nickName
|