|
@@ -90,7 +90,8 @@ export default {
|
|
|
await this.$store.dispatch('user/login', query)
|
|
|
await this.$store.dispatch('user/getEmployee') // 获取绑定员工信息
|
|
|
await this.$store.dispatch('system/getOrganizationTree') // 获取机构信息
|
|
|
- this.$router.push('/')
|
|
|
+ this.$route.query.redirect ? this.$router.push(this.$route.query.redirect) : this.$router.push('/')
|
|
|
+ // this.$router.push('/')
|
|
|
} catch (error) {
|
|
|
if (typeof error === 'object' && error?.code) {
|
|
|
this.$message.error(error.msg || error)
|