From 18bfcc24ad0bde57bb04db8a4209861ec6b8ff1d Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sat, 16 Nov 2024 01:14:41 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=96=B0=E6=89=8B=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E5=9C=A8=E9=9D=9E=E7=BC=96=E8=BE=91=E6=A8=A1=E5=BC=8F=E4=B8=8B?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .npmrc | 2 +- packages/core/basic/.npmrc | 2 +- packages/core/pipeline/.npmrc | 2 +- packages/plugins/plugin-cert/.npmrc | 2 +- packages/ui/certd-client/.npmrc | 2 +- packages/ui/certd-client/src/views/certd/pipeline/detail.vue | 2 +- .../ui/certd-client/src/views/certd/pipeline/pipeline/index.vue | 2 -- packages/ui/certd-server/.npmrc | 2 +- 8 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.npmrc b/.npmrc index 6c2b9be4..beae5694 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,2 @@ -link-workspace-packages=true +link-workspace-packages=deep prefer-workspace-packages=true diff --git a/packages/core/basic/.npmrc b/packages/core/basic/.npmrc index 6c2b9be4..beae5694 100644 --- a/packages/core/basic/.npmrc +++ b/packages/core/basic/.npmrc @@ -1,2 +1,2 @@ -link-workspace-packages=true +link-workspace-packages=deep prefer-workspace-packages=true diff --git a/packages/core/pipeline/.npmrc b/packages/core/pipeline/.npmrc index 6c2b9be4..beae5694 100644 --- a/packages/core/pipeline/.npmrc +++ b/packages/core/pipeline/.npmrc @@ -1,2 +1,2 @@ -link-workspace-packages=true +link-workspace-packages=deep prefer-workspace-packages=true diff --git a/packages/plugins/plugin-cert/.npmrc b/packages/plugins/plugin-cert/.npmrc index 6c2b9be4..beae5694 100644 --- a/packages/plugins/plugin-cert/.npmrc +++ b/packages/plugins/plugin-cert/.npmrc @@ -1,2 +1,2 @@ -link-workspace-packages=true +link-workspace-packages=deep prefer-workspace-packages=true diff --git a/packages/ui/certd-client/.npmrc b/packages/ui/certd-client/.npmrc index 6c2b9be4..beae5694 100644 --- a/packages/ui/certd-client/.npmrc +++ b/packages/ui/certd-client/.npmrc @@ -1,2 +1,2 @@ -link-workspace-packages=true +link-workspace-packages=deep prefer-workspace-packages=true diff --git a/packages/ui/certd-client/src/views/certd/pipeline/detail.vue b/packages/ui/certd-client/src/views/certd/pipeline/detail.vue index a8d346e3..6497c77b 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/detail.vue +++ b/packages/ui/certd-client/src/views/certd/pipeline/detail.vue @@ -140,7 +140,7 @@ async function onLoaded(pipeline: PipelineDetail) { } const res = await api.GetCount(); LocalStorage.set("pipeline-count", res.count); - if (res.count <= 1) { + if (res.count <= 1 && editMode.value === true) { await nextTick(); tourHandleOpen(true); } diff --git a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/index.vue b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/index.vue index 02706867..95a744b4 100644 --- a/packages/ui/certd-client/src/views/certd/pipeline/pipeline/index.vue +++ b/packages/ui/certd-client/src/views/certd/pipeline/pipeline/index.vue @@ -304,7 +304,6 @@ export default defineComponent({ } const loadCurrentHistoryDetail = async () => { - console.log("load history logs"); const detail: RunHistory = await props.options?.getHistoryDetail({ historyId: currentHistory.value.id }); currentHistory.value.logs = detail.logs; _.merge(currentHistory.value.pipeline, detail.pipeline); @@ -329,7 +328,6 @@ export default defineComponent({ if (reload) { histories.value = []; } - console.log("load history list"); const historyList = await props.options.getHistoryList({ pipelineId: pipeline.value.id }); if (!historyList) { return; diff --git a/packages/ui/certd-server/.npmrc b/packages/ui/certd-server/.npmrc index 6c2b9be4..beae5694 100644 --- a/packages/ui/certd-server/.npmrc +++ b/packages/ui/certd-server/.npmrc @@ -1,2 +1,2 @@ -link-workspace-packages=true +link-workspace-packages=deep prefer-workspace-packages=true