mirror of
https://github.com/yangzongzhuan/RuoYi-Vue3.git
synced 2025-09-28 07:12:41 +00:00
13 lines
332 B
JavaScript
13 lines
332 B
JavaScript
![]() |
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;
|
||
|
}
|
||
|
}
|