refactor(登录): 重写登录模块,接入oauth2.0(pc)、welink(mobile)

This commit is contained in:
zyn
2023-12-14 10:19:29 +08:00
parent ea5e6093ab
commit 01bee9fcc8
10 changed files with 977 additions and 523 deletions
+5
View File
@@ -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('未获取到菜单')