代码拉取完成,页面将自动刷新
main.ts中,.use(ElementPlus, { i18n: i18n.global.t })
爆红,不影响是使用,用的是 "typescript": "^4.9.5",网上查好像要配置vue-i18n/types
什么的.
No overload matches this call.
Overload 1 of 2, '(plugin: Plugin_2<[options?: Partial<ConfigProviderProps> | undefined]>, options?: Partial<ConfigProviderProps> | undefined): App<...>', gave the following error.
Argument of type '{ i18n: ComposerTranslation<{}, string, RemoveIndexSignature<{ [x: string]: LocaleMessageValue<VueMessageType>; }>, never, never, never>; }' is not assignable to parameter of type 'Partial<ConfigProviderProps>'.
Object literal may only specify known properties, and 'i18n' does not exist in type 'Partial<ConfigProviderProps>'.
Overload 2 of 2, '(plugin: Plugin_2<[options?: Partial<ConfigProviderProps> | undefined]>, options: [options?: Partial<ConfigProviderProps> | undefined]): App<...>', gave the following error.
Argument of type '{ i18n: ComposerTranslation<{}, string, RemoveIndexSignature<{ [x: string]: LocaleMessageValue<VueMessageType>; }>, never, never, never>; }' is not assignable to parameter of type '[options?: Partial<ConfigProviderProps> | undefined]'.
Object literal may only specify known properties, and 'i18n' does not exist in type '[options?: Partial<ConfigProviderProps> | undefined]'.ts(2769)
app.use(pinia).use(router).use(ElementPlus, { i18n: i18n.global.t }).use(i18n).use(VueGridLayout).mount('#app');
其实我不太明白为什么要use(ElementPlus, { i18n: i18n.global.t }),我直接改成下面的也好想也可以run,求解 .^_^,
app.use(pinia).use(router).use(ElementPlus).use(i18n).use(VueGridLayout).mount('#app');
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
那是以前版本的,ele改了,#I6JRH6:main.ts
登录 后才可以发表评论