mirror of
https://github.com/certd/certd.git
synced 2026-04-23 11:37:23 +08:00
12 lines
332 B
TypeScript
12 lines
332 B
TypeScript
import { env } from "./util.env";
|
|
export const site = {
|
|
/**
|
|
* @description 更新标题
|
|
* @param titleText
|
|
*/
|
|
title: function (titleText: string, baseTitle?: string) {
|
|
const processTitle = baseTitle || env.TITLE || "Certd";
|
|
window.document.title = `${processTitle}${titleText ? ` | ${titleText}` : ""}`;
|
|
}
|
|
};
|