Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译到微信小程序的数据更新问题 #2696

Closed
ctrlv-git opened this issue Jun 9, 2021 · 2 comments
Closed

编译到微信小程序的数据更新问题 #2696

ctrlv-git opened this issue Jun 9, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@ctrlv-git
Copy link

问题描述
绑定的数据,赋值0的时候编译到小程序时,不更新。

复现步骤

<template>
	<view class="content">
		<text class="title">{{ title }}</text>
	</view>
</template>
<script>
export default {
	data() {
		return {
			title: ''
		};
	},
	onLoad() {
		this.title = 0;
	},
	methods: {}
};
</script>

实际结果
问题仅出现在小程序,目前遇到有微信小程序和钉钉小程序。
当定义的title是空字符串的时候,后续再赋值为0时,页面数据不会更新,赋值其它非0值时,表现正常。
当定义的titlenull,undefined时,不会有这个问题。

@StrivingRabbit
Copy link
Collaborator

已确认此问题,后续会讨论修改

@StrivingRabbit StrivingRabbit self-assigned this Jun 11, 2021
@StrivingRabbit StrivingRabbit added the bug Something isn't working label Jun 11, 2021
@BoswellJi
Copy link

这个是微信小程序的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants