Update login.vue

WongBin 3 years ago
parent c6ca4c6556
commit 33e3d14a4a

@ -106,7 +106,7 @@ import cookies from 'js-cookie'
import { Decrypt, Encrypt } from '@/utils/index'
import { login } from '@/api/login'
import { transPsw } from '@/utils/encrypted'
import { setItem, getItem } from '@/utils/storage'
import { setToken, setAccessUser } from "@/utils/auth";
export default {
name: 'Login',
components: {
@ -225,8 +225,8 @@ export default {
console.log(data)
this.loading = false
if (code != '200') return
setItem('token', data.token)
setItem('loginName', data.loginName)
setToken(data.token)
setAccessUser(data)
// cookie,15
this.rememberPsw &&
cookies.set(

Loading…
Cancel
Save