| | |
| | | import {mapGetters} from "vuex"; |
| | | import {info} from "@/api/system/tenant"; |
| | | import {getTopUrl} from "@/util/util"; |
| | | import {oaSsos, updatePassword} from "@/api/system/user.js" |
| | | import { updatePassword} from "@/api/system/user.js" |
| | | import {removeToken} from "@/util/auth"; |
| | | import md5 from "js-md5"; |
| | | |
| | |
| | | props: [], |
| | | methods: { |
| | | ChandleLogin() { |
| | | // this.$store.dispatch("LoginBySso").then((res) => { |
| | | // console.log('res', res) |
| | | // this.$router.push({path: this.tagWel.value}); |
| | | // }) |
| | | this.$router.push({path:'/sso'}); |
| | | this.$router.push({ path: '/sso' }); |
| | | }, |
| | | closehandle() { |
| | | removeToken() |
| | | }, |
| | | delok() { |
| | | //点击取消或者x 清除token关闭弹窗 清除token后会自动重新获取用户信息 这里没有重新调用方法,因为下面逻辑有点绕,怕重新掉有bug直接清除token重新获取用户信息 |
| | | //点击取消或者x 清除token关闭弹窗 清除token后会自动重新获取用户信息 |
| | | this.dialogFormVisible = false; |
| | | removeToken() |
| | | }, |
| | |
| | | |
| | | }, |
| | | handleLogin: function () { |
| | | debugger |
| | | this.userInfo = this.$store.state.upadatastatus |
| | | localStorage.setItem('username', this.loginForm.username) |
| | | this.$refs.loginForm.validate(valid => { |