forked from verdnatura/salix-front
refs #6911 perf: use QForm instead classList
This commit is contained in:
parent
628d5453a8
commit
58dc4c253a
|
@ -1,4 +1,5 @@
|
|||
import { QTable, QForm } from 'quasar';
|
||||
import { QForm } from 'quasar';
|
||||
import { getCurrentInstance } from 'vue';
|
||||
|
||||
export default {
|
||||
inject: { QForm },
|
||||
|
@ -6,7 +7,8 @@ export default {
|
|||
components: { QForm },
|
||||
extends: { QForm },
|
||||
mounted: function () {
|
||||
if (this.$el?.classList?.contains('q-form'))
|
||||
const vm = getCurrentInstance();
|
||||
if (vm.type.name === 'QForm')
|
||||
if (this.$el?.id !== 'searchbarForm') {
|
||||
let that = this;
|
||||
|
||||
|
|
Loading…
Reference in New Issue