wupengfei
3 天以前 1f9cc3ad1ddd0b4f6f673298f2c0154b8e147693
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);
}