|
|
@@ -51,6 +51,7 @@ const store = new Vuex.Store({ |
|
|
|
refreshToken: lifeData.refreshToken || '', |
|
|
|
allOptions: lifeData.allOptions || { |
|
|
|
monitorList: [], //摄像头列表 |
|
|
|
monitorList:[], //楼栋列表 |
|
|
|
}, |
|
|
|
}, |
|
|
|
actions: { |
|
|
@@ -71,18 +72,20 @@ const store = new Vuex.Store({ |
|
|
|
name: 'token', |
|
|
|
value: payload.token |
|
|
|
}) |
|
|
|
context.commit('$uStore', { |
|
|
|
name: 'refreshToken', |
|
|
|
value: payload.refreshToken || '' |
|
|
|
}) |
|
|
|
if (payload.refreshToken) { |
|
|
|
context.commit('$uStore', { |
|
|
|
name: 'refreshToken', |
|
|
|
value: payload.refreshToken || '' |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
clearToken(context) { |
|
|
|
context.commit('$uStore', { |
|
|
|
name: 'token', |
|
|
|
value: '' |
|
|
|
}) |
|
|
|
context.commit('refreshToken', { |
|
|
|
name: 'token', |
|
|
|
context.commit('$uStore', { |
|
|
|
name: 'refreshToken', |
|
|
|
value: '' |
|
|
|
}) |
|
|
|
}, |
|
|
|