vue-typescript-dpapp-demo
vue-typescript-dpapp-demo copied to clipboard
ts编译报错:Property 'setSearchVal' has no initializer and is not definitely assigned in the constructor.
问题描述: TS2564: Property 'setSearchVal' has no initializer and is not definitely assigned in the constructor.
解决方法:修改tsconfig.json,compilerOptions下面加上"strictPropertyInitialization": false