老师在vscode按照您的代码写UserProfile.vue组件时,一直有报如下错误,但网站是能运行的:
Property 'fitUrl' does not exist on type '{ $: ComponentInternalInstance; $data: {}; $props: Partial<{}> & Omit<Readonly<{} & {} & {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>; ... 10 more ...; $watch(source: string | Function, cb: Function, options?: WatchOptions<...> | undefined): WatchStopHandle; } & ... 4 more ... & ComponentC...'.Vetur(2339)
还有PostDetail.vue也会出现下划红线,但没有提示报错