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

14 lines
256 B
JavaScript
Raw Normal View History

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