layout.js
450 Bytes
// components/layout.js
Component({
properties:{
},
data:{
},
methods:{
formSubmit: function(e) {
console.log('layout.formids',e.detail.formId)
if("the formId is a mock one"!=e.detail.formId){
let formids=wx.getStorageSync('formids') || [];
formids.push(e.detail.formId);
formids=[...new Set(formids)];
wx.setStorage({key:'formids',data:formids});
}
},
},
attached(){
}
})