fix: 解决 TS 类型错误问题

This commit is contained in:
奔跑的面条 2023-06-27 18:11:37 +08:00
parent 952e61bbba
commit 9f3ca6b614
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ watch(
() => props.chartConfig.option,
newVal => {
try {
updateDatasetHandler((newVal as OptionType).dataset)
updateDatasetHandler((newVal as any as OptionType).dataset)
} catch (error) {
console.log(error)
}

View File

@ -11,7 +11,7 @@
"esModuleInterop": true,
"skipLibCheck": true,
"lib": ["es6", "ESNext", "dom"],
"types": ["vite/client", "naive-ui/volar"],
"types": ["vite/client"],
"paths": {
"@/*": ["src/*"],
"/#/*": ["types/*"]