at present, when I am working on a vue project using json-server + mock.js, when I look at the data returned by the interface before the back-end students, I find that there is a paragraph like this:
role:0, // 01
roleValue: "" //
if I use mock.js to simulate data, how can I make these two values correspond one to one without an array, consistent with the interface written at the back end? (the value of roleValue is displayed when it is displayed, and the parameter passed in when modified is role, but the value of roleValue will be modified accordingly.) if mock.js cannot implement this method, is there any other solution? Look forward to your help very much!