|
@@ -251,6 +251,7 @@ img.img-arrow {
|
|
|
</style>
|
|
|
|
|
|
<script>
|
|
|
+import { mapGetters } from 'vuex'
|
|
|
import FloatMenu from './floatMenu'
|
|
|
import { logoutUrl } from '@/apiConfig/requestIP.js'
|
|
|
|
|
@@ -270,7 +271,10 @@ export default {
|
|
|
computed: {
|
|
|
username() {
|
|
|
return localStorage.getItem('realname')
|
|
|
- }
|
|
|
+ },
|
|
|
+ ...mapGetters([
|
|
|
+ 'bizId'
|
|
|
+ ])
|
|
|
},
|
|
|
mounted() {
|
|
|
window.addEventListener('scroll', this.handleScroll, true)
|
|
@@ -297,7 +301,8 @@ export default {
|
|
|
this.$router.push({ name: 'jar包管理' })
|
|
|
break
|
|
|
case '4' :
|
|
|
- this.$router.push({ name: '业务线选择' })
|
|
|
+ if (this.bizId === -1) this.$router.push({ name: '业务线选择' })
|
|
|
+ this.$router.push({ name: '项目' })
|
|
|
break
|
|
|
case '6':
|
|
|
this.$router.push({ name: '单车' })
|