|
@@ -1,6 +1,7 @@
|
|
|
import Vue from "vue";
|
|
|
import Vuex from "vuex";
|
|
|
import { EPCC_DOMAIN, CUG_DOMAIN } from "@/constants/constants";
|
|
|
+import { createLog } from "@/utils/logger";
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
@@ -219,6 +220,8 @@ export default new Vuex.Store({
|
|
|
},
|
|
|
updateTimeDifference(state, payload) {
|
|
|
state = Object.assign(state, { timeDifference: payload });
|
|
|
+ createLog({ action: "updateTimeDifference", timeDifference: payload });
|
|
|
+ console.log("与服务器时间差异:" + payload);
|
|
|
},
|
|
|
updateSiteMessages(state, payload) {
|
|
|
state = Object.assign(state, { siteMessages: payload });
|