Browse Source

feat: 进入时间轴时自动选择上次所选择的角色

carbasic
aBin 4 years ago
parent
commit
9c722919e4
  1. 6
      .env.development
  2. 6
      .env.production
  3. 3
      CHANGELOG.md
  4. 3
      src/pages/project/project.vue

6
.env.development

@ -1,4 +1,4 @@
VUE_APP_NODE_ENV=development
VUE_APP_BASE_URL=https://test.tall.wiki/
VUE_APP_API_URL=https://test.tall.wiki/gateway
VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws
VUE_APP_BASE_URL=https://www.tall.wiki/
VUE_APP_API_URL=https://www.tall.wiki/gateway
VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws

6
.env.production

@ -1,4 +1,4 @@
VUE_APP_NODE_ENV=production
VUE_APP_BASE_URL=https://test.tall.wiki/
VUE_APP_API_URL=https://test.tall.wiki/gateway
VUE_APP_MSG_URL=wss://test.tall.wiki/websocket/message/v4.0/ws
VUE_APP_BASE_URL=https://www.tall.wiki/
VUE_APP_API_URL=https://www.tall.wiki/gateway
VUE_APP_MSG_URL=wss://www.tall.wiki/websocket/message/v4.0/ws

3
CHANGELOG.md

@ -1,4 +1,4 @@
# 0.1.0 (2021-11-19)
# 0.1.0 (2021-11-22)
### 🌟 新功能
范围|描述|commitId
@ -24,6 +24,7 @@
- | 距调整pc端 | [5069aa1](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/5069aa1)
- | 面变化首页变化 | [5e860f1](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/5e860f1)
- | 模拟接口测试 | [69e7931](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/69e7931)
- | 默认选择上次退出项目时的角色 | [a695868](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/a695868)
- | 配置默认插件接口 | [f0c177d](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/f0c177d)
- | 切换角色时,取消显示多角色下拉框 | [4a57c0c](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/4a57c0c)
- | 全局插件及默认插件位置修改 | [6c80d08](https://dd.tall.wiki/gitea/wally/tall-mui-3-project/commits/6c80d08)

3
src/pages/project/project.vue

@ -462,13 +462,12 @@ export default {
const storageRoleId = this.$t.storage.getStorageSync('roleId');
const params = { param: { projectId: this.projectId } };
const data = await uni.$u.api.queryLastRoleChoose(params);
console.log('data: ', data);
if (data && data.roleId) {
this.setRoleId(data.roleId);
} else {
const currentRoleId = storageRoleId ? storageRoleId : currentRole ? currentRole.id : '';
const saveParams = { param: { roleId: currentRoleId, projectId: this.projectId } };
await uni.$u.api.saveRoleRecord(saveParams);
const currentRoleId = storageRoleId ? storageRoleId : currentRole ? currentRole.id : '';
this.setRoleId(currentRoleId);
}
// storage

Loading…
Cancel
Save