how to write a function open a router link in vue code example Example: add router to vue vue add router # Vue CLI