mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-06 13:06:09 +08:00
release: 0.5.0
This commit is contained in:
@@ -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 {
|
||||
<UButton v-if="hasImportLog" size="xs" @click="openLatestImportLog">{{ t('home.import.viewLog') }}</UButton>
|
||||
</div>
|
||||
|
||||
<UButton @click="openTutorial" trailing-icon="i-heroicons-chevron-right-20-solid">
|
||||
<UButton :to="tutorialUrl" target="_blank" trailing-icon="i-heroicons-chevron-right-20-solid">
|
||||
{{ t('home.import.tutorial') }}
|
||||
</UButton>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user