Closed bookyo closed 3 years ago
setOptions
is global, you need to set properties on the component if you want to have different options per view.
setOptions
is global, you need to set properties on the component if you want to have different options per view.
i can use itemInsertLocation in setOptions?
page a:
page b:
page a setOptions will be global setting, and page b will default use page a setOptions function. this will cause something wrong when i have a lot of different settings on different pages.
i have sovle it use setOptions in mouted() on different pages.