You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
"use strict";
|
|
|
|
const common_vendor = require("../common/vendor.js");
|
|
|
|
const store = common_vendor.createStore({
|
|
|
|
state: {
|
|
|
|
islogin: true,
|
|
|
|
access_token: "",
|
|
|
|
refresh_token: "",
|
|
|
|
userinfo: {}
|
|
|
|
// 暂时没用
|
|
|
|
// repetitionCode: 4000
|
|
|
|
},
|
|
|
|
mutations: {
|
|
|
|
updateislog(state, islogin) {
|
|
|
|
state.islogin = islogin;
|
|
|
|
},
|
|
|
|
updatetk(state, access_token) {
|
|
|
|
state.access_token = access_token;
|
|
|
|
},
|
|
|
|
updaterftk(state, refresh_token) {
|
|
|
|
state.refresh_token = refresh_token;
|
|
|
|
},
|
|
|
|
updatauser(state, userinfo) {
|
|
|
|
state.userinfo = userinfo;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
actions: {
|
|
|
|
huoqubeijin(context) {
|
|
|
|
}
|
|
|
|
},
|
|
|
|
getters: {},
|
|
|
|
modules: {}
|
|
|
|
});
|
|
|
|
exports.store = store;
|