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

调整

parent 5fabb901
...@@ -6,6 +6,7 @@ import 'nprogress/nprogress.css' ...@@ -6,6 +6,7 @@ import 'nprogress/nprogress.css'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import { isRelogin } from '@/utils/request' import { isRelogin } from '@/utils/request'
NProgress.configure({ showSpinner: false }) NProgress.configure({ showSpinner: false })
const whiteList = ['/login', '/auth-redirect', '/bind', '/register'] const whiteList = ['/login', '/auth-redirect', '/bind', '/register']
......
import Cookies from 'js-cookie' import Cookies from 'js-cookie'
import wsNotification from 'common/src/utils/wsNotification.js'
const state = { const state = {
...@@ -15,6 +16,7 @@ const state = { ...@@ -15,6 +16,7 @@ const state = {
const mutations = { const mutations = {
changeInit:state=>{ changeInit:state=>{
wsNotification()
state.isInit=true state.isInit=true
}, },
TOGGLE_SIDEBAR: state => { TOGGLE_SIDEBAR: state => {
......
...@@ -52,6 +52,8 @@ const user = { ...@@ -52,6 +52,8 @@ const user = {
setToken(res.data.token) setToken(res.data.token)
commit('SET_TOKEN', res.data.token) commit('SET_TOKEN', res.data.token)
setUserid(res.data.userid) setUserid(res.data.userid)
resolve() resolve()
}).catch(error => { }).catch(error => {
reject(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