Earlier quoted context omitted.
I don't understand why changing a title tag would require any code. Is it the framework or the code? (I don't know Vue, but this smells a bit.)
We had a similar scenario at my workplace, but with React rather than Vue. We wanted an internal component to be able to change the page title, which ended up with a project to transition to using react-helmet. It ended up taking a few weeks before this project completed.
```ts
const setTitle = (t: string): void => document.title = t
```