【发布时间】:2022-01-05 07:55:25
【问题描述】:
我在 Laravel 中使用 Inertia 和 Vue 3。我需要知道如何添加全局过滤器。
我尝试使用此referrance,但没有成功。
app.js
createInertiaApp({
title: (title) => `${title} - ${appName}`,
resolve: (name) => require(`./Pages/${name}.vue`),
setup({el, app, props, plugin}) {
return createApp({render: () => h(app, props)})
.use(plugin)
.mixin({methods: {route}})
.mount(el);
},
});
【问题讨论】:
-
title是过滤器吗?如果没有,请您显示您要添加的“过滤”内容。 -
@Rwd 我需要知道正确方法的任何过滤器