mirror of
https://github.com/jbcr/core.git
synced 2026-03-31 21:32:09 +02:00
Toolbar vue error fix
This commit is contained in:
@@ -11,12 +11,15 @@ import Toolbar from './Components/Toolbar.vue';
|
||||
/**
|
||||
* Register Components
|
||||
*/
|
||||
const id = 'toolbar';
|
||||
|
||||
export default new Vue({
|
||||
store,
|
||||
el: '#toolbar',
|
||||
name: 'BoltToolbar',
|
||||
components: {
|
||||
'admin-toolbar': Toolbar,
|
||||
},
|
||||
});
|
||||
if (document.getElementById(id)) {
|
||||
new Vue({
|
||||
store,
|
||||
el: '#' + id,
|
||||
name: 'BoltToolbar',
|
||||
components: {
|
||||
'admin-toolbar': Toolbar,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user