How does vue gracefully obtain the encoding symbols corresponding to the optional options?

if you can choose more than one of the selected parts in the figure, each disease corresponds to a code, and the background requires that the code be passed to him with a string comma separated by a string. What should I do?
tag: [{name:" Hypertension", tag:"Ba"}, {name:" Diabetes", tag:"Bb"}, {name:" Tuberculosis", tag:"Bc"}, {name:" Psychiatry", tag:"Bd"}],

Apr.02,2021

  

upstairs answered. Let me talk about the idea of declaring a variable. As a result, the value selected by Arr vue computed processing is assigned to the variable Arr using filter Filter and then join (',)

.
Menu