登录社区云,与社区用户共同成长
邀请您加入社区
最简单的解决方式是:加 as anyeg:y.x报错,则改为(y as any).x暴露全局变量src下新建文件shime-vue.d.tsdeclare module 'nprogress';declare module 'axios' {interface AxiosInstance {(config: AxiosRequestConfig): Promise<any>}}...
eg:y.x报错,则改为(y as any).x
y.x
(y as any).x
src下新建文件shime-vue.d.tsdeclare module 'nprogress';
shime-vue.d.ts
declare module 'nprogress';
declare module 'axios' { interface AxiosInstance { (config: AxiosRequestConfig): Promise<any> } }
Vue社区为您提供最前沿的新闻资讯和知识内容
更多推荐
Mac 使用vscode 创建vue项目后修改文件提示:权限不足,以超级用户身份重试
基于nodejs+vue云计算的城乡医疗卫生服务系统[程序+论文+开题]-计算机毕业设计
ElasticSearch迁移至openGauss
扫一扫分享内容
所有评论(0)