pushed data in wrapper for nav components
This commit is contained in:
@@ -197,12 +197,12 @@ Axios.get('conf/init.json')
|
||||
component: Vue.component(name + rIdx++, {
|
||||
template: '<div id="' + name + rIdx + '">' + content + '</div>',
|
||||
components: Views,
|
||||
data() {
|
||||
data: function(data) {
|
||||
if (typeof data != 'object') {
|
||||
return {};
|
||||
return () => { return {}; };
|
||||
}
|
||||
return data;
|
||||
}
|
||||
return () => { return data; };
|
||||
}(data)
|
||||
})
|
||||
}));
|
||||
router.addRoutes(routes);
|
||||
|
||||
Reference in New Issue
Block a user