feat: 新增tab名称跟随项目名称

This commit is contained in:
奔跑的面条
2023-01-09 20:13:58 +08:00
parent 13467e569f
commit eae6de24c6
6 changed files with 26 additions and 4 deletions
+8
View File
@@ -325,3 +325,11 @@ export const JSONParse = (data: string) => {
return v
})
}
/**
* * 修改顶部标题
* @param title
*/
export const setTitle = (title?: string) => {
title && (document.title = title)
}