From 1c4f620436e8e13b610879ba288f12910953a27c Mon Sep 17 00:00:00 2001 From: bwcx_jzy Date: Sat, 2 Sep 2023 10:22:10 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=B5=84=E4=BA=A7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=85=B1=E4=BA=AB=E4=BB=93=E5=BA=93=E6=96=B0=E5=BB=BA=E5=BD=92?= =?UTF-8?q?=E5=B1=9E=E5=88=B0=E5=B7=A5=E4=BD=9C=E7=A9=BA=E9=97=B4=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG-BETA.md | 8 ++++++++ web-vue/src/pages/repository/repository-list.vue | 12 ++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/CHANGELOG-BETA.md b/CHANGELOG-BETA.md index 26816d512..ec5f6e3fc 100644 --- a/CHANGELOG-BETA.md +++ b/CHANGELOG-BETA.md @@ -1,5 +1,13 @@ # 🚀 版本日志 +### 2.10.44.4-beta + +### 🐞 解决BUG、优化功能 + +1. 【server】修复 资产管理共享仓库新建归属到工作空间问题(感谢@沈钊) + +------ + ### 2.10.44.3-beta (2023-08-31) ### 🐞 解决BUG、优化功能 diff --git a/web-vue/src/pages/repository/repository-list.vue b/web-vue/src/pages/repository/repository-list.vue index 9fcc0e513..2e4abec30 100644 --- a/web-vue/src/pages/repository/repository-list.vue +++ b/web-vue/src/pages/repository/repository-list.vue @@ -568,6 +568,10 @@ export default { repoType: 0, protocol: 0, }; + if (!this.global) { + this.temp = { ...this.temp, workspaceId: "GLOBAL", global: true }; + } + this.editVisible = true; }, handleAddGitee() { @@ -614,14 +618,18 @@ export default { this.handleGiteeImportFormOk(); }, handleGiteeRepoAdd(record) { - editRepository({ + let data = { repoType: 0, protocol: 0, userName: record.username, password: this.giteeImportForm.token, name: record.name, gitUrl: record.url, - }).then((res) => { + }; + if (!this.global) { + data = { ...data, workspaceId: "GLOBAL", global: true }; + } + editRepository(data).then((res) => { if (res.code === 200) { // 成功 this.$notification.success({