* 'v_1.0.0' of http://gitlab.ldxinyong.com/enterpriseManagement/digitization-ui:
  优化
  优化
  优化
This commit is contained in:
leave 2020-11-09 09:45:54 +08:00
commit 3a71eda837
3 changed files with 9 additions and 4 deletions

View File

@ -20,8 +20,10 @@
</div> -->
</transition>
<div>{{isNav}}---{{this.userInfo.realName}}</div>
<div class="navBar-right" v-if="isNav">
<span>{{this.userInfo.realName}}</span>
<div class="navBar-right">
<span>{{this.userInfo.realName}}</span><span>{{this.userInfo}}</span><span>熊承强</span>
<img src="/static/default.jpg" />
<img src="../../..//static/default.jpg" />
<img onerror="javascript:this.src='/static/default.jpg';" :src="this.userInfo.avatar || ''" alt="">
</div>
</div>
@ -54,6 +56,7 @@ export default {
},
beforeMount () {},
mounted () {
console.log('userInfo: ', this.userInfo)
},
methods: {
handleToRouter (item) {

View File

@ -33,7 +33,9 @@ export default {
console.log('this.isPopup: ', this.isPopup)
if (this.isPopup) return this.open()
history.go(-1)
// this.$router.go(-1)
console.log('history: ', history)
console.log('this.$router: ', this.$router)
this.$router.go(-1)
},
open () {
const obj = {

View File

@ -13,6 +13,6 @@ const router = [
export default new Router({
base: '/digitization/',
mode: 'history',
// mode: 'history',
routes: [...configRouter, ...kpiRouter, ...router]
})