From 9c722919e4ee2948c607c1678854d0b95b4f08a9 Mon Sep 17 00:00:00 2001 From: aBin Date: Mon, 22 Nov 2021 18:54:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=BF=9B=E5=85=A5=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=BD=B4=E6=97=B6=E8=87=AA=E5=8A=A8=E9=80=89=E6=8B=A9=E4=B8=8A?= =?UTF-8?q?=E6=AC=A1=E6=89=80=E9=80=89=E6=8B=A9=E7=9A=84=E8=A7=92=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 6 +++--- .env.production | 6 +++--- CHANGELOG.md | 3 ++- src/pages/project/project.vue | 3 +-- 4 files changed, 9 insertions(+), 9 deletions(-) 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