init:first commit of plus-ui

This commit is contained in:
Teo
2025-05-21 11:24:53 +08:00
commit 95e38df6a5
2219 changed files with 2478311 additions and 0 deletions

14
src/utils/dynamicTitle.ts Normal file
View File

@ -0,0 +1,14 @@
import defaultSettings from '@/settings';
import { useSettingsStore } from '@/store/modules/settings';
/**
* 动态修改标题
*/
export const useDynamicTitle = () => {
const settingsStore = useSettingsStore();
if (settingsStore.dynamicTitle) {
document.title = settingsStore.title + ' - ' + import.meta.env.VITE_APP_TITLE;
} else {
document.title = defaultSettings.title as string;
}
};