0👍
✅
You might want to consider a more ‘Vue’ approach to doing this – simply set a variable value based on the result from your initial localstorage value, and then display the splashscreen depending on the variable value – something along those lines:
https://codesandbox.io/s/dreamy-bash-ve5bv?file=/src/App.vue
With Vue you rarely need to do things like :
var splash = document.getElementById('splash');
splash.remove();
Source:stackexchange.com