重构;DynamicLayout组件重写,移除blog.config.js中的MAPPING配置

This commit is contained in:
tangly1024
2024-11-23 18:24:47 +08:00
parent be1ada5106
commit 394c8e0e0b
21 changed files with 55 additions and 73 deletions

View File

@@ -204,6 +204,9 @@ export function getQueryVariable(key) {
* @returns {string|null}
*/
export function getQueryParam(url, param) {
if (!url) {
return ''
}
// 移除哈希部分
const urlWithoutHash = url.split('#')[0]
const searchParams = new URLSearchParams(urlWithoutHash.split('?')[1])