Type ‘string | string[]‘ is not assignable to type ‘string | undefined‘.

ts 类型报错 需要选择一个类型

const customerid = this.$route.query.custormid   as string


版权声明:本文为weixin_42478537原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。