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.
willaengine/resources/js/Global/store/modules/common/actions.js

9 lines
262 B

import { getTime } from "@Global/utils/date/time";
export default {
setCurrentTime:({ commit }) => {
commit('SET_CURRENT_TIME', getTime());
setInterval(function() {
commit('SET_CURRENT_TIME', getTime());
}, 2000);
},
}