爱上乔
爱上乔
  • 发布:2025-07-09 17:33
  • 更新:2025-07-09 19:53
  • 阅读:28

模板里直接赋值编译到app上的时候会报错,H5和小程序没问题

分类:uni-app x

<template>
<button @click="addShow = true">测试</button>
</template>

<script lang="uts" setup>
let addShow = ref(false)
</script>

请问各位大佬,这种写法在UniappX中是不被支持吗

2025-07-09 17:33 负责人:无 分享
已邀请:
DCloud_UNI_JBB

DCloud_UNI_JBB

你把 let 改为 const 试试

要回复问题请先登录注册