qq_41295110
2026-01-13 e1b39f63fc0c2cd4d1080c36b7b7b73609c63a2a
1
2
3
4
5
6
7
8
9
10
11
12
13
import store from '@/store'
import defaultSettings from '@/settings'
 
/**
 * 动态修改标题
 */
export function useDynamicTitle() {
  if (store.state.settings.dynamicTitle) {
    document.title = store.state.settings.title + ' - ' + defaultSettings.title
  } else {
    document.title = defaultSettings.title
  }
}