mirror of
https://github.com/certd/certd.git
synced 2026-05-15 20:47:31 +08:00
perf: 支持易盾RCDN部署
This commit is contained in:
@@ -11,10 +11,16 @@ import "./styles/antd/index.css";
|
||||
import { useTitle } from "@vueuse/core";
|
||||
import { setupI18n } from "/@/vben/locales";
|
||||
|
||||
export async function setupVben(app: any, { loadMessages }: any) {
|
||||
export async function setupVben(app: any, { loadMessages, router }: any) {
|
||||
await setupI18n(app, { loadMessages });
|
||||
const store = await initStores(app, { namespace: "fs" });
|
||||
|
||||
watchEffect(() => {
|
||||
if (preferences.app.dynamicTitle) {
|
||||
const routeTitle = router.currentRoute.value.title;
|
||||
const pageTitle = routeTitle || "" + preferences.app.name;
|
||||
useTitle(pageTitle);
|
||||
}
|
||||
});
|
||||
return { store };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user