diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b92d2b4..efd7d96 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -185,7 +185,7 @@ jobs: echo "" # 提取 feat commits - FEATS=$(git log $COMMIT_RANGE --pretty=format:"%s" --grep="^feat" 2>/dev/null | sed 's/^feat[:(]//' | sed 's/^[^)]*): //' | sed 's/^/- ✨ /') + FEATS=$(git log $COMMIT_RANGE --pretty=format:"%s" --grep="^feat" 2>/dev/null | sed 's/^feat[:(]//' | sed 's/^[^)]*): //' | sed 's/^/- /') if [ -n "$FEATS" ]; then echo "### 新功能" echo "$FEATS" diff --git a/package.json b/package.json index 7ce1d35..5cd6e54 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ChatLab", - "version": "0.4.1", + "version": "0.5.0", "description": "本地聊天分析实验室", "repository": { "type": "git", diff --git a/src/pages/home/components/ImportArea.vue b/src/pages/home/components/ImportArea.vue index a008642..6c1059d 100644 --- a/src/pages/home/components/ImportArea.vue +++ b/src/pages/home/components/ImportArea.vue @@ -139,11 +139,12 @@ async function handleGoToSession(sessionId: string) { await navigateToSession(sessionId) } -function openTutorial() { +// 教程链接:根据语言动态生成 +const tutorialUrl = computed(() => { const { locale } = useI18n() const langPath = locale.value === 'zh-CN' ? '/cn' : '' - window.open(`https://chatlab.fun${langPath}/usage/how-to-export.html?utm_source=app`, '_blank') -} + return `https://chatlab.fun${langPath}/usage/how-to-export.html?utm_source=app` +}) // 打开最新的导入日志文件 async function openLatestImportLog() { @@ -468,7 +469,7 @@ function getFileProgressText(file: BatchFileInfo): string { {{ t('home.import.viewLog') }} - + {{ t('home.import.tutorial') }}