fix(skills): use unified import skill in home card

This commit is contained in:
digua committed 2026-09-06 00:00:36 +08:00
1 parent 59520a2e61
commit 7c6531f846
1 file changed
+1 -4
@@ -4,10 +4,7 @@ import { useClipboard } from '@vueuse/core'
import { useI18n } from 'vue-i18n'
const { t, locale } = useI18n()
const skillInstallCommand = computed(() => {
const skillName = locale.value === 'zh-CN' || locale.value === 'zh-TW' ? 'chatlab-import-cn' : 'chatlab-import'
return `npx skills add ChatLab/ChatLab --skill ${skillName} -g`
})
const skillInstallCommand = 'npx skills add ChatLab/ChatLab --skill chatlab-import -g'
const cliImportCommand = 'clb import ~/Downloads/chat-export.json'
const { copy: copySkillCommand, copied: skillCommandCopied } = useClipboard({ copiedDuring: 2000 })
const { copy: copyCliCommand, copied: cliCommandCopied } = useClipboard({ copiedDuring: 2000 })