Electron+Vue not updating DOM correctly


I’m having problems when using Electron with Vue.
I used the electron-forge Vue template and the only code I added was a simple code of Vue:

<input v-model="test" type="text">

So that everything I write on the input, it would show immediately below.

The problem is that it seems the DOM is not correctly refreshed, if I write something, then delete it and write again, the first string is not deleted, and the second string shows up above the first string. However, if I resize the app window, it will show up correctly.