生成的data属性里面多了一层
Howell5 opened this issue · 4 comments
Howell5 commented
生成的.vue文件里的data都是这样
data() {
return {
data: {
fetchEnd: false,
dealId: '',
detail: {},
dealShareImage: '',
dealShareCardImage: '',
isShowSharePopup: false,
items: [],
showFloatWindow: false,
dayDealsEndTime: null,
useChinese: false,
isSubscribed: false
}
};
}
ninesword commented
这个可以改一下 源码。好改
zhangdaren commented
生成的.vue文件里的data都是这样
data() { return { data: { fetchEnd: false, dealId: '', detail: {}, dealShareImage: '', dealShareCardImage: '', isShowSharePopup: false, items: [], showFloatWindow: false, dayDealsEndTime: null, useChinese: false, isSubscribed: false } }; }
请问一下,原wpy文件里面的data是什么样的?
Howell5 commented
生成的.vue文件里的data都是这样
data() { return { data: { fetchEnd: false, dealId: '', detail: {}, dealShareImage: '', dealShareCardImage: '', isShowSharePopup: false, items: [], showFloatWindow: false, dayDealsEndTime: null, useChinese: false, isSubscribed: false } }; }
请问一下,原wpy文件里面的data是什么样的?
export default class home extends wepy.page {
...
data = {
navItems: [],
showCustomizedNavi: true,
customizedNaviHeight: 0, // px
contentContainerHeight: 0, // px
statusBarStyle: '',
isShowServicePopup: false
}
...
}
是这样的。
Howell5 commented
这个可以改一下 源码。好改
是的,自己已经改过了