123424123
123424123
  • 发布:2024-08-17 23:56
  • 更新:2024-08-29 15:57
  • 阅读:192

uniapp 安卓打包 v-if 使用多了会报错 怎么解决

分类:uni-app

<template v-if="current === 0">
<attentions />
</template>
<template v-if="current === 1">
<recommend />
</template>
<template v-if="current === 2">
<works />
</template>
<template v-if="current === 3">
<cultureTourism />
</template>
<template v-if="current === 4">
<read />
</template>
<template v-if="current === 5">
<academy />
</template>
<template v-if="current === 6">
<institution />
</template>

安卓打包以后切换的时候点击无响应, 且报错
报错信息

[Number] 1 , tabClickHandle, number at pages/homeContainer/index.vue:118
23:48:14.858 [Vue warn]: Error in nextTick: "RangeError: Maximum call stack size exceeded"
23:48:14.859 RangeError: Maximum call stack size exceeded

怎么解决

2024-08-17 23:56 负责人:无 分享
已邀请:
DCloud_UNI_yuhe

DCloud_UNI_yuhe

你尝试将template换成view试试

蔡cai

蔡cai

感觉是逻辑问题,比如递归之类

123424123

123424123 (作者) - huier.cn

已经搞定了

要回复问题请先登录注册