fix 资产管理共享仓库新建归属到工作空间问题

This commit is contained in:
bwcx_jzy 2023-09-02 10:22:10 +08:00
parent 3b9df2cb9d
commit 1c4f620436
No known key found for this signature in database
GPG Key ID: E187D6E9DDDE8C53
2 changed files with 18 additions and 2 deletions

View File

@ -1,5 +1,13 @@
# 🚀 版本日志
### 2.10.44.4-beta
### 🐞 解决BUG、优化功能
1. 【server】修复 资产管理共享仓库新建归属到工作空间问题(感谢@沈钊)
------
### 2.10.44.3-beta (2023-08-31)
### 🐞 解决BUG、优化功能

View File

@ -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({