Commit fd844cbd authored by hanfeng zhang's avatar hanfeng zhang

321

parent 53233522
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<main-page <main-page
left-arrow left-arrow
:loading="loading" :loading="loading"
@click-left="$router.go(-1)" @click-left="$router.push('/team/team-frame')"
> >
<member-selector <member-selector
:show.sync="showMemberSelector" :show.sync="showMemberSelector"
...@@ -109,7 +109,7 @@ export default Vue.extend({ ...@@ -109,7 +109,7 @@ export default Vue.extend({
}, },
created(){ created(){
this.entId=JSON.parse(localStorage.getItem('ENT_INFO') as string).id this.entId=JSON.parse(localStorage.getItem('ENT_INFO') as string).id
const leaderId = JSON.parse(localStorage.getItem('UER_INFO') as string)?.id || '1FKxgaEh5fuSm7a35BfUnKYAmradowpiTR' const leaderId = JSON.parse(localStorage.getItem('UER_INFO') as string)?.id
this.selectedLeaderId = [leaderId] this.selectedLeaderId = [leaderId]
this.getStaffInfo(this.selectedLeaderId[0]) this.getStaffInfo(this.selectedLeaderId[0])
const depId = this.$route.query.id as string const depId = this.$route.query.id as string
......
...@@ -130,6 +130,7 @@ export default Vue.extend({ ...@@ -130,6 +130,7 @@ export default Vue.extend({
if (data.code === this.$global.success) { if (data.code === this.$global.success) {
this.$toast('加入成功') this.$toast('加入成功')
this.$store.commit('acceptJoin', {}) this.$store.commit('acceptJoin', {})
this.$router.push('/team/team-management')
}else { }else {
this.$toast(data.msg) this.$toast(data.msg)
} }
......
...@@ -102,7 +102,7 @@ export default Vue.extend({ ...@@ -102,7 +102,7 @@ export default Vue.extend({
mounted() { mounted() {
const res = JSON.parse(getUserInfo() || "{}") const res = JSON.parse(getUserInfo() || "{}")
this.entId = process.env.NODE_ENV==='production'?res.entId : '166961152260050944' this.entId = process.env.NODE_ENV==='production'?res.entId : '166961152260050944'
localStorage.setItem('USR_INFO', JSON.stringify(getUserInfo())) localStorage.setItem('USR_INFO', getUserInfo())
this.getEntInfo() this.getEntInfo()
}, },
computed: { computed: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment