' + functionToLabel(func) + '
') 26 | contentLines.push(config.functions[func].content as string) 27 | } 28 | } 29 | } 30 | return contentLines.join('\n') 31 | } 32 | 33 | export function contentToFilenamePathPart(text: string, limit: number = 10) { 34 | return text 35 | // 只保留字母、文字信息 36 | .replace(/[^a-zA-Z0-9\u4e00-\u9fa5]/g, '') 37 | .substring(0, limit) 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/lib/components/Prompt.vue: -------------------------------------------------------------------------------- 1 | 15 | 16 | 17 |