diff --git a/.env.development b/.env.development index d16578a..403eac1 100644 --- a/.env.development +++ b/.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 diff --git a/.env.production b/.env.production index ed91693..9a99c2b 100644 --- a/.env.production +++ b/.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 diff --git a/CHANGELOG.md b/CHANGELOG.md index f9d4921..a6b4b9b 100644 --- a/CHANGELOG.md +++ b/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) diff --git a/src/pages/project/project.vue b/src/pages/project/project.vue index d9e332e..4fdb8b2 100644 --- a/src/pages/project/project.vue +++ b/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