external css 修复

This commit is contained in:
tangly1024.com
2024-06-17 16:25:46 +08:00
parent 8efde42bc2
commit be048bb51e
3 changed files with 4 additions and 5 deletions

View File

@@ -97,7 +97,7 @@ export function isUrl(str) {
// 检查是否外链
export function checkStartWithHttp(str) {
// 检查字符串是否包含http
if (str?.includes('http:') || str?.includes('https:')) {
if (str?.indexOf('http:') === 0 || str?.indexOf('https:') === 0) {
// 如果包含找到http的位置
return str?.indexOf('http') > -1
} else {