refactor(登录): 重写登录模块,接入oauth2.0(pc)、welink(mobile)
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
import { mapMutations, mapActions } from 'vuex'
|
||||
import axios from 'axios'
|
||||
import util from 'util'
|
||||
import isMobile from "../../store/isMobile";
|
||||
export default {
|
||||
name: 'Login',
|
||||
data () {
|
||||
@@ -187,6 +188,10 @@
|
||||
if (this.showIETips) {//判断是否IE浏览器
|
||||
alert('为了最佳显示效果 请使用google chrome')
|
||||
}
|
||||
if (isMobile()) {
|
||||
this.$router.push('/phoneHome')
|
||||
return;
|
||||
}
|
||||
this.$router.push('/home2')
|
||||
}, e => {
|
||||
this.$message.warning('未获取到菜单')
|
||||
|
||||
Reference in New Issue
Block a user