[fix][V]:修改退出登录机制

master
Romesum 5 years ago
parent 81b7dd4552
commit 4170a264a3

@ -23,6 +23,8 @@
<script>
import dropDownUser from "~/components/dropDownUser";
import {get} from "~/utils";
import {showSuccess} from "~/utils/dialog";
export default {
data() {
return {
@ -33,8 +35,12 @@
handleSelect(key, keyPath) {
console.log(key, keyPath);
},
backLogin:function () {
this.$router.push('/login')
async backLogin() {
await get('lb/user/logout')
await showSuccess("退出成功",this)
setTimeout(()=>{
this.$router.push('/login')
},1000)
},
goPersonal:function () {
this.$router.push('/teacher/personal')

Loading…
Cancel
Save