|
@@ -90,7 +90,7 @@
|
|
|
}).then(({data}) => {
|
|
|
if (data && data.code === '200') {
|
|
|
this.$cookie.set('token', data.data.access_token)
|
|
|
- this.$router.replace({ name: 'home' })
|
|
|
+ this.$router.replace({ name: this.dataForm.userName === 'admin' ? 'home-admin' : 'home-customer' })
|
|
|
} else {
|
|
|
// this.getCaptcha()
|
|
|
this.$message.error(data.msg)
|