VVT789
2025-02-17 466c70dccc2b46ffa62fd14c8b2f88349c5ef9c6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import store from '@/store'
import defaultSettings from '@/settings'
import useSettingsStore from '@/store/modules/settings'
 
/**
 * 动态修改标题
 */
export function useDynamicTitle() {
  const settingsStore = useSettingsStore();
  if (settingsStore.dynamicTitle) {
    document.title = settingsStore.title + ' - ' + defaultSettings.title;
  } else {
    document.title = defaultSettings.title;
  }
}