liqianyi 1 rok pred
rodič
commit
feaa46adcb
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/views/common/login.vue

+ 1 - 1
src/views/common/login.vue

@@ -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)