Javascript console error fixed
This commit is contained in:
parent
7de2814a5f
commit
81852f00fa
@ -64,6 +64,7 @@ import AkauntingRecurring from './AkauntingRecurring';
|
|||||||
|
|
||||||
import Form from './../plugins/form';
|
import Form from './../plugins/form';
|
||||||
import { Alert, ColorPicker } from 'element-ui';
|
import { Alert, ColorPicker } from 'element-ui';
|
||||||
|
import Global from './../mixins/global';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'akaunting-modal-add-new',
|
name: 'akaunting-modal-add-new',
|
||||||
@ -150,7 +151,7 @@ export default {
|
|||||||
this.component = Vue.component('add-new-component', (resolve, reject) => {
|
this.component = Vue.component('add-new-component', (resolve, reject) => {
|
||||||
resolve({
|
resolve({
|
||||||
template : '<div id="modal-add-new-form-' + form_prefix + '">' + this.message + '</div>',
|
template : '<div id="modal-add-new-form-' + form_prefix + '">' + this.message + '</div>',
|
||||||
|
mixins: [Global],
|
||||||
components: {
|
components: {
|
||||||
AkauntingRadioGroup,
|
AkauntingRadioGroup,
|
||||||
AkauntingSelect,
|
AkauntingSelect,
|
||||||
|
@ -318,9 +318,7 @@ export default {
|
|||||||
this.selected = this.value;
|
this.selected = this.value;
|
||||||
|
|
||||||
if (this.model.length) {
|
if (this.model.length) {
|
||||||
if (eval(this.model) !== undefined) {
|
if (this.model !== undefined) {
|
||||||
this.selected = eval(this.model);
|
|
||||||
} else {
|
|
||||||
this.selected = this.model;
|
this.selected = this.model;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -430,9 +430,7 @@ export default {
|
|||||||
this.selected = this.value;
|
this.selected = this.value;
|
||||||
|
|
||||||
if (this.model.length) {
|
if (this.model.length) {
|
||||||
if (eval(this.model) !== undefined) {
|
if (this.model !== undefined) {
|
||||||
this.selected = eval(this.model);
|
|
||||||
} else {
|
|
||||||
this.selected = this.model;
|
this.selected = this.model;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user