提交 a1a7ffe9 编写于 作者: 雪洛's avatar 雪洛

fix: 修复编译错误

上级 3e0846a5
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</view> </view>
<view class="flex justify-between flex-row mb-10"> <view class="flex justify-between flex-row mb-10">
<text>issue15557:</text> <text>issue15557:</text>
<text id="issue-15557">{{ issue15557['a'] }}</text> <text id="issue-15557">{{ issue15557?.['a'] }}</text>
</view> </view>
<button class='mb-10' id="change-count-btn" @click="changeCount">change count</button> <button class='mb-10' id="change-count-btn" @click="changeCount">change count</button>
<button class='mb-10' id='change-str-btn' @click='changeStr'>change str</button> <button class='mb-10' id='change-str-btn' @click='changeStr'>change str</button>
...@@ -73,11 +73,11 @@ ...@@ -73,11 +73,11 @@
const changeCounters = () => { const changeCounters = () => {
counters.value.push({ count: 0 }) counters.value.push({ count: 0 })
} }
// issue/15557 // issue/15557
const issue15557 = ref<UTSJSONObject | null>(null) const issue15557 = ref<UTSJSONObject | null>(null)
issue15557.value = { issue15557.value = {
a: 1 a: 1
} }
issue15557.value!.set('a', 2) issue15557.value!.set('a', 2)
</script> </script>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册