uniapp使用vue3 setup
引入 uniapp 页面声明周期
<script setup> // 重点
import { ref } from 'vue'
let index = ref("11");
onShow(() => {
index.value = "22";
});
</script>
<script setup> // 重点
import { ref } from 'vue'
let index = ref("11");
onShow(() => {
index.value = "22";
});
</script>