mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-26 02:04:37 +08:00
fix(skills): use unified import skill in home card
This commit is contained in:
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 })
|
||||
|
||||
Reference in new issue
Block a user