在main.ts中引入:
import VueMeta from 'vue-meta';
Vue.use(VueMeta, {
refreshOnceOnNavigation: true
})
报错:
Types of property 'metaInfo' are incompatible.
Type '{ title: string; titleTemplate: string; htmlAttrs: { lang: string; amp: boolean; }; meta: ({ charset: string; name?: undefined; content?: undefined; } | { name: string; content: string; charset?: undefined; })[]; }' is not assignable to type 'MetaInfo | MetaInfoComputed | undefined'.
Type '{ title: string; titleTemplate: string; htmlAttrs: { lang: string; amp: boolean; }; meta: ({ charset: string; name?: undefined; content?: undefined; } | { name: string; content: string; charset?: undefined; })[]; }' is not assignable to type 'MetaInfo'.
请问,应该怎么解决呢?