提交 386d97ce 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

fix(reactive): 规避 template reverse 无效问题

上级 f9fedb54
......@@ -34,7 +34,7 @@
</view>
<view class="flex justify-between flex-row mb-10">
<text>arr3(reverse):</text>
<text id="arr3">{{ JSON.stringify(arr3.reverse()) }}</text>
<text id="arr3">{{ JSON.stringify(arr3) }}</text>
</view>
<view class="flex justify-between flex-row mb-10">
<text>map2ForEachEffectCount:</text>
......@@ -130,7 +130,7 @@
arr2.push(Date.now())
}
var arr3 = reactive([1, 2, 3, 4, 5])
var arr3 = reactive([1, 2, 3, 4, 5]).reverse()
const map2 = reactive(new Map<string, number>([["a", 1]]))
const map2ForEachEffectCount = ref(0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册