【代码优化】AI:绘图 index.vue 代码梳理 60%(StableDiffusion.vue)

This commit is contained in:
YunaiV
2024-07-09 13:55:07 +08:00
parent ac46a37638
commit 61bf6fb85b
7 changed files with 523 additions and 451 deletions

View File

@@ -8,6 +8,6 @@
*/
/** 判断字符串是否包含中文 */
export const hasChinese = async (str) => {
export const hasChinese = (str: string) => {
return /[\u4e00-\u9fa5]/.test(str)
}