qq_41295110
4 天以前 6235fa7c1cc6a5a11dbdd2a3003f1085fc65acc8
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
  }
}