mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-02 15:10:16 +00:00
refactor(utils): rename and improve isUrl to isUrlLikePath
- Rename isUrl function to isUrlLikePath for better clarity - Simplify function logic and add type checking - Update all references to use the new function name - Improve function documentation and parameter typing
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import BLOG from '@/blog.config'
|
||||
import { useGlobal } from './global'
|
||||
import { deepClone, isUrl } from './utils'
|
||||
import { deepClone, isUrlLikePath } from './utils'
|
||||
|
||||
/**
|
||||
* 读取配置顺序
|
||||
@@ -146,7 +146,7 @@ export const convertVal = val => {
|
||||
}
|
||||
|
||||
// 检测是否为 URL
|
||||
if (isUrl(val)) {
|
||||
if (isUrlLikePath(val)) {
|
||||
return val
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user