提交 16650473 编写于 作者: H hdx

watch: 代码警告,将未使用的变量标记为_

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