同步所有用到的登录类型态
This commit is contained in:
@@ -7,12 +7,16 @@ Vue.use(Vuex)
|
||||
|
||||
const store = new Vuex.Store({
|
||||
state: {
|
||||
token: ""
|
||||
token: "",
|
||||
loginWay: "std",//std 标准,qujing:曲靖定制登录,admin:G端小程序登录
|
||||
},
|
||||
mutations: {
|
||||
setToken(state, token) {
|
||||
state.token = token
|
||||
},
|
||||
setLoginWay(state, way) {
|
||||
state.loginWay = way
|
||||
},
|
||||
logout(state, showToast) {
|
||||
state.token = ""
|
||||
state.user = {}
|
||||
|
||||
Reference in New Issue
Block a user