zhengyiming
5 天以前 0b73bba28e2a8473ab71f5c8b4760c1995ff4fc1
1
2
3
4
5
6
7
8
9
10
11
12
 
import config from "@config/config";
export function getPageTitle(pageTitle: string) {
  if (pageTitle) {
    return `${pageTitle} - ${config.title}`;
  }
  return `${config.title}`;
}
 
export function setPageTitle(pageTitle: string) {
  document.title = getPageTitle(pageTitle);
}