feat: 完善搜索模块内容

This commit is contained in:
2024-08-31 18:39:25 +08:00
parent e4fab491db
commit b63515128b
26 changed files with 487 additions and 5 deletions

View File

@@ -1,6 +1,19 @@
// 工具函数
import { description as appDesc } from '@package-json';
import {
description as appDesc,
} from '@package-json';
/** 当前模块 URL */
const META_URL = import.meta.url;
/**
* @description 获取资源文件 URL
* @param {string} path 文件相对于 assets 目录的路径
*/
export function getAssetsUrl(path = '') {
return new URL(`../${path}`, META_URL).href;
}
/**
* @description 更新页面标题