parent
fe0c1fcb5b
commit
bc70351e34
@ -0,0 +1,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 |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue