diff --git a/CHANGELOG.md b/CHANGELOG.md index aa13ab5..ca779c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 0.1.0 (2021-08-17) +# 0.1.0 (2021-08-18) ### 🌟 新功能 范围|描述|commitId @@ -79,6 +79,7 @@ ### 🐛 Bug 修复 范围|描述|commitId --|--|-- + - | 1.时间轴数据渲染 2.时间基准线 | [d643af2](https://dd.tall.wiki/gitea/ccsens_fe/TALL-MUI-3/commits/d643af2) ID1000343 | 解决向下预加载查询参数时间没+1颗粒度;以及滚动加载颗粒度写死的问题 | [940603a](https://dd.tall.wiki/gitea/ccsens_fe/TALL-MUI-3/commits/940603a), closes [#ID1000343](https://dd.tall.wiki/gitea/ccsens_fe/TALL-MUI-3/issues/ID1000343) plugin | 插件解析机制完善 | [0f5a27d](https://dd.tall.wiki/gitea/ccsens_fe/TALL-MUI-3/commits/0f5a27d) project title | 项目标题修改; 切换角色移除script | [5c20017](https://dd.tall.wiki/gitea/ccsens_fe/TALL-MUI-3/commits/5c20017) diff --git a/src/components/Roles/Roles.vue b/src/components/Roles/Roles.vue index 524c0ef..2a087f9 100644 --- a/src/components/Roles/Roles.vue +++ b/src/components/Roles/Roles.vue @@ -58,7 +58,7 @@ export default { methods: { ...mapActions('task', ['handleRegularTask', 'getPermanent']), ...mapMutations('role', ['setRoleId']), - ...mapMutations('task', ['setPermanents', 'setDailyTasks', 'clearEndFlag']), + ...mapMutations('task', ['setPermanents', 'clearEndFlag']), // 设置滚动位置 setCurrentRole(index) { diff --git a/src/store/task/actions.js b/src/store/task/actions.js index 33e7da9..b8dfbfb 100644 --- a/src/store/task/actions.js +++ b/src/store/task/actions.js @@ -18,10 +18,10 @@ const actions = { * @param {*} commit * @param {object} param 请求参数 roleId, timeNode, timeUnit */ - async getGlobal(param) { + async getGlobal({ commit }, param) { try { - await uni.$u.api.getGlobal(param); - // commit('setDailyTasks', data); + const data = await uni.$u.api.getGlobal(param); + commit('setDailyTasks', data); } catch (error) { console.log('task actions getGlobal error: ', error); } @@ -33,10 +33,9 @@ const actions = { * @param {number} param.queryType 必填 0 -> 向上 1 -> 向下 */ // eslint-disable-next-line - async getRegulars(param) { + async getRegulars({ commit }, param) { try { - const data = await uni.$u.api.getRegularTask(param); - return data; + return await uni.$u.api.getRegularTask(param); } catch (error) { throw error || '获取定期任务失败'; }