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

View File

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

View File

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