TS中一些常见报错的写法修正

Cannot invoke an object which is possibly ‘undefined‘

在openSpeedUpModal方法后面加上!

openSpeedUpModal!(record.id, record.priority)

参考:https://flowus.cn/46989933-affc-40a1-b9ab-76c72b061381#1db40beb-601f-4054-8b39-1ef64f36839c

posted @ 2023-06-02 20:02  Lu西西  阅读(112)  评论(0)    收藏  举报