mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-16 21:37:11 +00:00
fix: 修复过长设定发不出来的。后续用图片
This commit is contained in:
parent
c781df07a1
commit
83c789baf4
3 changed files with 13 additions and 4 deletions
|
|
@ -374,3 +374,11 @@ export async function isCN () {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function limitString(str, maxLength) {
|
||||
if (str.length <= maxLength) {
|
||||
return str;
|
||||
} else {
|
||||
return str.slice(0, maxLength) + '...';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue