提交 e884bb5c 编写于 作者: H hdx

watch-array: 代码警告 调整 for 循环写法,移除不需要的 index

上级 4f8f949a
<template>
<view>
<view v-for="(item, index) in dataList">
<view v-for="item in dataList">
<text class="data-item-text">{{JSON.stringify(item)}}</text>
<!-- TODO 暂不支持 for UTSJSONObject -->
<!-- <view v-for="(value, key) in item">
......@@ -34,7 +34,7 @@
},
watch: {
dataList: {
handler(newValue : Array<UTSJSONObject>) {
handler(_ : Array<UTSJSONObject>) {
this.watchCount++
},
deep: true,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册