Skip to content

Commit 82b3ee7

Browse files
nickcdonFaberiii
andauthored
🐛 修复创建分析方案运行环境选择 (#553)
* fix: 选择分支 * 🍱 web 打包构建资源 Co-authored-by: Faberiii <qawb@foxmail.com>
1 parent c155c1e commit 82b3ee7

5 files changed

Lines changed: 2 additions & 12 deletions

File tree

web/packages/tca-analysis/src/modules/projects/project/first-modal.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@ const FirstModal = (props: FirstModalProps) => {
5757

5858
const onFinish = (data: any) => {
5959
const { funcList = [] } = data;
60-
// 开源版需要隐藏tag,默认赋予tag Codedog_Linux
61-
const tag = tags.filter(item => item.public && item.name === 'Codedog_Linux').pop() || tags.pop();
6260
data = data.type === 'create' ? {
6361
branch: data.branch,
6462
scan_scheme: {
@@ -72,7 +70,6 @@ const FirstModal = (props: FirstModalProps) => {
7270
envs: null,
7371
pre_cmd: null,
7472
build_flag: false,
75-
tag: tag.name || 'Codedog_Linux',
7673
},
7774
} : {
7875
branch: data.branch,

web/packages/tca-analysis/src/modules/schemes/create-scheme.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ const CreatSchemeModal = (props: IProps) => {
4949

5050
if (data.createType === 'create') {
5151
const { funcList = [] } = data;
52-
// 开源版需要隐藏tag,默认赋予tag Codedog_Linux
53-
const tag = tags.filter(item => item.public && item.name === 'Codedog_Linux').pop() || tags.pop();
5452
createScheme(orgSid, teamName, repoId, {
5553
...pick(data, ['name', 'languages', 'tag']),
5654
...SCAN_LIST.map(item => ({ [item.value]: funcList.includes(item.value) })).reduce(
@@ -61,7 +59,6 @@ const CreatSchemeModal = (props: IProps) => {
6159
envs: null,
6260
pre_cmd: null,
6361
name: trim(data.name),
64-
tag: tag.name || 'Codedog_Linux',
6562
}).then((res) => {
6663
message.success('创建成功');
6764
callback(res.scan_scheme);

web/packages/tca-analysis/src/modules/template/create.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ const CreatSchemeModal = (props: IProps) => {
3737

3838
const onFinish = (data: any) => {
3939
const { funcList = [] } = data;
40-
// 开源版需要隐藏tag,默认赋予tag Codedog_Linux
41-
const tag = tags.filter(item => item.public && item.name === 'Codedog_Linux').pop() || tags.pop();
4240
createTmpl(orgSid, {
4341
...pick(data, ['name', 'languages', 'tag', 'description']),
4442
...SCAN_LIST.map(item => ({ [item.value]: funcList.includes(item.value) })).reduce(
@@ -49,8 +47,6 @@ const CreatSchemeModal = (props: IProps) => {
4947
envs: null,
5048
pre_cmd: null,
5149
name: trim(data.name),
52-
// 开源版需要隐藏tag,默认赋予tag Codedog_Linux
53-
tag: tag.name || 'Codedog_Linux',
5450
}).then((res: any) => {
5551
message.success('创建成功');
5652
onReset();
-137 Bytes
Binary file not shown.

web/tca-deploy-source/conf/configs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@
4040
{
4141
"name": "tca-analysis",
4242
"description": "TCA Analysis 微前端",
43-
"commitId": "bcc814127940a3358b6aaf264aee498d914f69e1",
43+
"commitId": "9be160bacbfdee93404fd95d580c5068a41eaf27",
4444
"match": "^/t/[^/]+/p/[^/]+/(code-analysis|repos|template|profile|group)",
4545
"js": [
4646
"/static/tca-analysis/runtime~tca-analysis-749a7dad.js",
4747
"/static/tca-analysis/vendors~tca-analysis-7f52f6b6.js",
48-
"/static/tca-analysis/tca-analysis-55db2f4d.js"
48+
"/static/tca-analysis/tca-analysis-16575169.js"
4949
],
5050
"css": [
5151
"/static/tca-analysis/vendors~tca-analysis-9b6df0cb.css",

0 commit comments

Comments
 (0)