fixed all eslint errors and warning, compiled as PROD
This commit is contained in:
@@ -30,7 +30,7 @@ export default {
|
||||
mail: this.mail,
|
||||
pass: this.password
|
||||
}).then(() => {
|
||||
console.log("LoginBlock user logged-in")
|
||||
console.log('LoginBlock user logged-in')
|
||||
this.openCloseHamMenu(false)
|
||||
this.$router.push({
|
||||
name: 'base'
|
||||
@@ -39,9 +39,9 @@ export default {
|
||||
}
|
||||
},
|
||||
beforeMount() {
|
||||
// console.log('LoginBlock beforeMount', this._props.block);
|
||||
if(this._props.block){
|
||||
// console.log('LoginBlock beforeMount if this._props.block ok');
|
||||
// console.log('LoginBlock beforeMount', this._props.block)
|
||||
if (this._props.block) {
|
||||
// console.log('LoginBlock beforeMount if this._props.block ok')
|
||||
this.template = Vue.compile(this._props.block)
|
||||
this.$options.staticRenderFns = [];
|
||||
this._staticTrees = [];
|
||||
@@ -49,16 +49,16 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
// console.log('LoginBlock mounted');
|
||||
// console.log('LoginBlock mounted')
|
||||
Drupal.attachBehaviors(this.$el);
|
||||
},
|
||||
render(h) {
|
||||
// console.log('LoginBlock render');
|
||||
if(!this.template){
|
||||
// console.log('LoginBlock render NAN');
|
||||
// console.log('LoginBlock render')
|
||||
if (!this.template) {
|
||||
// console.log('LoginBlock render NAN')
|
||||
return h('span', 'Loading ...')
|
||||
}else{
|
||||
// console.log('LoginBlock render template');
|
||||
} else {
|
||||
// console.log('LoginBlock render template')
|
||||
return this.template.render.call(this)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user