|
@@ -115,11 +115,22 @@ export default {
|
|
|
// // this.$router.push(`/login?redirect=${this.$route.fullPath}`)
|
|
|
// location.href = logoutUrl
|
|
|
// },
|
|
|
- sumTypeCkeck(type) { // 下拉列表的点击事件
|
|
|
+ sumTypeCkeck(type) { // 下拉列表的点击事件x
|
|
|
this.sumType = type.name
|
|
|
settingUserSetBiz({ bizId: type.code }).then(res => {
|
|
|
localStorage.setItem('bizId', type.code)
|
|
|
- window.location.reload()
|
|
|
+ const url = window.location.href
|
|
|
+ const urlArr = url.split('?')
|
|
|
+ const k = urlArr[0]
|
|
|
+ const appU = k.split('/')
|
|
|
+ const name = appU[appU.length - 1]
|
|
|
+ name === 'projectViewDetails' ? this.$router.push({ name: '项目', query: {}}) : ''
|
|
|
+ name === 'taskViewDetails' ? this.$router.push({ name: '任务', query: {}}) : ''
|
|
|
+ name === 'requirementDetails' ? this.$router.push({ name: '需求', query: {}}) : ''
|
|
|
+ name === 'iterationDetails' ? this.$router.push({ name: '迭代', query: {}}) : ''
|
|
|
+ if (name !== 'projectViewDetails' || name !== 'taskViewDetails' || name !== 'requirementDetails' || name !== 'iterationDetails') {
|
|
|
+ window.location.reload()
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
get_bizArr() {
|