基于Java spring + vue3 + nuxt构建的内容管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

20 lines
410 B

export default defineNuxtPlugin(() => {
const runtimeConfig = useRuntimeConfig();
return {
provide: {
titleRender: (msg: string) => `${msg} - ${runtimeConfig.public.globalTitle}`
}
};
});
declare module '#app' {
interface NuxtApp {
$titleRender: string;
}
}
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$titleRender(msg: string): string;
}
}