perf: 新手导航在非编辑模式下不显示

pull/265/head
xiaojunnuo 2024-11-16 01:14:41 +08:00
parent 989f48c47a
commit 18bfcc24ad
8 changed files with 7 additions and 9 deletions

2
.npmrc
View File

@ -1,2 +1,2 @@
link-workspace-packages=true link-workspace-packages=deep
prefer-workspace-packages=true prefer-workspace-packages=true

View File

@ -1,2 +1,2 @@
link-workspace-packages=true link-workspace-packages=deep
prefer-workspace-packages=true prefer-workspace-packages=true

View File

@ -1,2 +1,2 @@
link-workspace-packages=true link-workspace-packages=deep
prefer-workspace-packages=true prefer-workspace-packages=true

View File

@ -1,2 +1,2 @@
link-workspace-packages=true link-workspace-packages=deep
prefer-workspace-packages=true prefer-workspace-packages=true

View File

@ -1,2 +1,2 @@
link-workspace-packages=true link-workspace-packages=deep
prefer-workspace-packages=true prefer-workspace-packages=true

View File

@ -140,7 +140,7 @@ async function onLoaded(pipeline: PipelineDetail) {
} }
const res = await api.GetCount(); const res = await api.GetCount();
LocalStorage.set("pipeline-count", res.count); LocalStorage.set("pipeline-count", res.count);
if (res.count <= 1) { if (res.count <= 1 && editMode.value === true) {
await nextTick(); await nextTick();
tourHandleOpen(true); tourHandleOpen(true);
} }

View File

@ -304,7 +304,6 @@ export default defineComponent({
} }
const loadCurrentHistoryDetail = async () => { const loadCurrentHistoryDetail = async () => {
console.log("load history logs");
const detail: RunHistory = await props.options?.getHistoryDetail({ historyId: currentHistory.value.id }); const detail: RunHistory = await props.options?.getHistoryDetail({ historyId: currentHistory.value.id });
currentHistory.value.logs = detail.logs; currentHistory.value.logs = detail.logs;
_.merge(currentHistory.value.pipeline, detail.pipeline); _.merge(currentHistory.value.pipeline, detail.pipeline);
@ -329,7 +328,6 @@ export default defineComponent({
if (reload) { if (reload) {
histories.value = []; histories.value = [];
} }
console.log("load history list");
const historyList = await props.options.getHistoryList({ pipelineId: pipeline.value.id }); const historyList = await props.options.getHistoryList({ pipelineId: pipeline.value.id });
if (!historyList) { if (!historyList) {
return; return;

View File

@ -1,2 +1,2 @@
link-workspace-packages=true link-workspace-packages=deep
prefer-workspace-packages=true prefer-workspace-packages=true