浏览代码

always update state.upgradeCheck after upgrade, even if failure

pull/76/head
Jonathan Cobb 4 年前
父节点
当前提交
6e9b9fd011
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. +3
    -5
      src/_store/system.module.js

+ 3
- 5
src/_store/system.module.js 查看文件

@@ -210,11 +210,8 @@ const actions = {
(error) => commit('checkForUpgradeFailure', error)
);
} else {
console.log(
'checkForUpgrade: already checked (' +
state.upgradeCheck +
'), not checking again'
);
commit('checkForUpgradeFailure', null)
console.log('checkForUpgrade: already checked (' + state.upgradeCheck + '), not checking again');
}
},
upgrade({ commit }) {
@@ -535,6 +532,7 @@ const mutations = {
},
checkForUpgradeFailure(state, error) {
state.error = error;
state.upgradeCheck = null;
},

upgradeRequest(state) {},


正在加载...
取消
保存