报错展示 解决办法 Object.keys(directives).forEach(k => { app.directive(k, directives[k as keyof typeof directives]) })