layout.js 395 Bytes
// components/layout.js
Component({
  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});
      }
    },
  },
})