14 lines
256 B
JavaScript
14 lines
256 B
JavaScript
// 工具函数
|
|
|
|
import {
|
|
description as appDesc,
|
|
} from '@package-json';
|
|
|
|
/**
|
|
* @description 更新页面标题
|
|
* @param {string} title
|
|
*/
|
|
export function updateAppTitle(title = '') {
|
|
document.title = (title ? `${title} - ${appDesc}` : appDesc);
|
|
}
|