Files
frost-navigation/src/assets/js/utils.js

12 lines
253 B
JavaScript
Raw Normal View History

// 工具函数
2024-08-29 14:46:06 +08:00
import { description as appDesc } from '@package-json';
/**
* @description 更新页面标题
* @param {string} title
*/
export function updateAppTitle(title = '') {
document.title = (title ? `${title} - ${appDesc}` : appDesc);
}