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

View File

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

View File

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

View File

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

View File

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

View File

@ -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);
}

View File

@ -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;

View File

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