"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSearchQuery = void 0;
/**
 * 从 URL 查询参数中获取指定字段的值
 * @param key 查询参数的键名
 * @returns 查询参数的值，如果不存在则返回 null
 */
const getSearchQuery = (key) => {
    const searchParams = new URLSearchParams(window.location.search);
    return searchParams.get(key);
};
exports.getSearchQuery = getSearchQuery;
