Commit 1dca486c authored by 李苏's avatar 李苏 💬

调整

parent 5fabb901
......@@ -6,6 +6,7 @@ import 'nprogress/nprogress.css'
import { getToken } from '@/utils/auth'
import { isRelogin } from '@/utils/request'
NProgress.configure({ showSpinner: false })
const whiteList = ['/login', '/auth-redirect', '/bind', '/register']
......
import Cookies from 'js-cookie'
import wsNotification from 'common/src/utils/wsNotification.js'
const state = {
......@@ -13,8 +14,9 @@ const state = {
}
const mutations = {
changeInit:state=>{
wsNotification()
state.isInit=true
},
TOGGLE_SIDEBAR: state => {
......
......@@ -52,6 +52,8 @@ const user = {
setToken(res.data.token)
commit('SET_TOKEN', res.data.token)
setUserid(res.data.userid)
resolve()
}).catch(error => {
reject(error)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment