Browse Source

perf: 修改代码格式

develop
song 4 years ago
parent
commit
14123d758c
  1. 3
      CHANGELOG.md
  2. 2
      src/components/Roles/Roles.vue
  3. 11
      src/store/task/actions.js

3
CHANGELOG.md

@ -1,4 +1,4 @@
# 0.1.0 (2021-08-17) # 0.1.0 (2021-08-18)
### 🌟 新功能 ### 🌟 新功能
范围|描述|commitId 范围|描述|commitId
@ -79,6 +79,7 @@
### 🐛 Bug 修复 ### 🐛 Bug 修复
范围|描述|commitId 范围|描述|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) 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) 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) project title | 项目标题修改; 切换角色移除script | [5c20017](https://dd.tall.wiki/gitea/ccsens_fe/TALL-MUI-3/commits/5c20017)

2
src/components/Roles/Roles.vue

@ -58,7 +58,7 @@ export default {
methods: { methods: {
...mapActions('task', ['handleRegularTask', 'getPermanent']), ...mapActions('task', ['handleRegularTask', 'getPermanent']),
...mapMutations('role', ['setRoleId']), ...mapMutations('role', ['setRoleId']),
...mapMutations('task', ['setPermanents', 'setDailyTasks', 'clearEndFlag']), ...mapMutations('task', ['setPermanents', 'clearEndFlag']),
// //
setCurrentRole(index) { setCurrentRole(index) {

11
src/store/task/actions.js

@ -18,10 +18,10 @@ const actions = {
* @param {*} commit * @param {*} commit
* @param {object} param 请求参数 roleId, timeNode, timeUnit * @param {object} param 请求参数 roleId, timeNode, timeUnit
*/ */
async getGlobal(param) { async getGlobal({ commit }, param) {
try { try {
await uni.$u.api.getGlobal(param); const data = await uni.$u.api.getGlobal(param);
// commit('setDailyTasks', data); commit('setDailyTasks', data);
} catch (error) { } catch (error) {
console.log('task actions getGlobal error: ', error); console.log('task actions getGlobal error: ', error);
} }
@ -33,10 +33,9 @@ const actions = {
* @param {number} param.queryType 必填 0 -> 向上 1 -> 向下 * @param {number} param.queryType 必填 0 -> 向上 1 -> 向下
*/ */
// eslint-disable-next-line // eslint-disable-next-line
async getRegulars(param) { async getRegulars({ commit }, param) {
try { try {
const data = await uni.$u.api.getRegularTask(param); return await uni.$u.api.getRegularTask(param);
return data;
} catch (error) { } catch (error) {
throw error || '获取定期任务失败'; throw error || '获取定期任务失败';
} }

Loading…
Cancel
Save