VUE value transfer problem


< H2 > problem description < / H2 >
  1. uses the n3-data-table component of the n3 framework. When the button is checked, the onSelect function in figure 1 will be triggered. checkRows is the selected value. My requirement is how to pass this checkrows value to the needApplyAppTransfers variable in data . At present, follow the method shown in figure 1

self.needApplyAppTransfers = checkRows is not allowed. Although the first selected data prints out the value of needApplyAppTransfers , the printed appTransfers data is still empty when calling the method applyServer .

Mar.18,2021

you print the onSelect and the this, in applyServer to see if the this points to the same


has solved this variable passing value problem by using Vuex

Menu