|
|
@@ -17,9 +17,6 @@ const modules = modulesFiles.keys().reduce((modules, modulePath) => {
|
|
|
return modules;
|
|
|
}, {});
|
|
|
const state = () => ({
|
|
|
- isPC: -1,
|
|
|
- isWeixin: false,
|
|
|
- deviceType: {},
|
|
|
domainConfig: {
|
|
|
api: "",
|
|
|
siteUrl: "",
|
|
|
@@ -35,15 +32,6 @@ const mutations = {
|
|
|
jishuinUrl: config.jishuinUrl,
|
|
|
rooterUrl: config.rooterUrl
|
|
|
};
|
|
|
- },
|
|
|
- updateIsPC(state, payload) {
|
|
|
- state.isPC = payload.isPC;
|
|
|
- },
|
|
|
- updateIsWeixin(state, payload) {
|
|
|
- state.isWeixin = payload.isWeixin;
|
|
|
- },
|
|
|
- updateDeviceType(state, payload) {
|
|
|
- state.deviceType = payload;
|
|
|
}
|
|
|
};
|
|
|
const store = new Vuex.Store({
|