mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-05-10 09:12:42 +00:00
【代码优化】AI:绘图 index.vue 代码梳理 60%(StableDiffusion.vue)
This commit is contained in:
@@ -8,6 +8,6 @@
|
||||
*/
|
||||
|
||||
/** 判断字符串是否包含中文 */
|
||||
export const hasChinese = async (str) => {
|
||||
export const hasChinese = (str: string) => {
|
||||
return /[\u4e00-\u9fa5]/.test(str)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user