Ver Fonte

调整首页

liqianyi há 1 ano atrás
pai
commit
feaa46adcb
1 ficheiros alterados com 1 adições e 1 exclusões
  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)