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版权协议,转载请附上原文出处链接和本声明。原文链接:https://blog.csdn.net/weixin_42478537/article/details/121641204