index.vue:19 Uncaught (in promise) TypeError: Assignment to constant variable. at getBanner (ind

错误类型:
index.vue:19 Uncaught (in promise) TypeError: Assignment to constant variable.
at getBanner (index.vue:19:14)

错误解决方案

定义的ref 变量没有加value 如
index.vue:19 Uncaught (in promise) TypeError: Assignment to constant variable. at getBanner (ind_第1张图片
正确的为:
index.vue:19 Uncaught (in promise) TypeError: Assignment to constant variable. at getBanner (ind_第2张图片

你可能感兴趣的:(vue,vue.js,javascript,前端)