feat: 完善搜索模块内容
This commit is contained in:
@@ -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 更新页面标题
|
||||
|
Reference in New Issue
Block a user