I am facing an issue where my root vm in Vue is being set to app.__vue__ instead of just app. For instance, when trying to access the router, I have to use app.__vue__.$router. This seems unnecessary and confusing.
There's more code in the script, but I've only included the parts that I find relevant.
import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter);
var router = new VueRouter({
routes: [
{path: '/', component: Dashboard},
{path: '/dashboard', component: Dashboard},
{path: '/protocol', component: Protocol}
]
});
var data = {
loadPercentage: 0
};
var vm = new Vue({
el: "#app",
router: router,
created: function () {
},
data: data
});