uniapp使用外掛 小程式正常 app報錯cid unmatched at view.umd.min.js:1
阿新 • • 發佈:2020-12-19
技術標籤:uni-app
app報錯 並且uni-swipe-action滑動也不生效
10:20:55.354 cid unmatched at view.umd.min.js:1
10:20:55.375 TypeError: Invalid attempt to destructure non-iterable instance.
10:20:55.396 In order to be iterable, non-array objects must have a Symbol.iterator method. at view.umd.min.js:1
找了好久原來是這裡有問題:
import {uniSwipeAction} from '@/components/uni-swipe-action/uni-swipe-action.vue'
解決:
import uniSwipeAction from '@/components/uni-swipe-action/uni-swipe-action.vue' //把{}去掉