private otherQuery: Dictionary<string> = {} переписать на vue 3
- User
private otherQuery: Dictionary = {} переписать на vue 3
- Assistant
In Vue 3, if you want to define a reactive dictionary (an object with keys and values) as part of the component's reactive state, you can use the
reactivefunction from Vue's composition API.Here's an example of how you can rewrite the
otherQuerydictionary as reactive state in a Vue 3 component, using thesetup()function:vue