|
|
@@ -154,9 +154,16 @@
|
|
|
password: this.model.password.replace(/(^\s*)|(\s*$)/g, '')
|
|
|
}
|
|
|
})
|
|
|
- if (process.env.appclient == 'lims') {
|
|
|
- this.$router.push(this.$route.query.page || '/')
|
|
|
- } else if (process.env.appclient == 'cellbank') {
|
|
|
+ if (process.env.appclient === 'lims') {
|
|
|
+ let {data: menus1} = await this.$axios.get('users/getusermoduletree')
|
|
|
+ for (let idx in menus1) {
|
|
|
+ if (menus1[idx].url === '/') {
|
|
|
+ this.$router.push(this.$route.query.page || '/')
|
|
|
+ } else if (menus1[idx].url === '/lims/secondcenter') {
|
|
|
+ this.$router.push('/lims/secondcenter')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else if (process.env.appclient === 'cellbank') {
|
|
|
this.$router.push(this.$route.query.page || '/indexdqm')
|
|
|
} else {
|
|
|
this.$router.push(this.$route.query.page || '/')
|