refactor: refs #8004 remove consoleLogs
This commit is contained in:
parent
321b8dd9f9
commit
5ac59840a2
|
@ -9,27 +9,21 @@ const hasContent = ref(false);
|
||||||
const rightPanel = ref(null);
|
const rightPanel = ref(null);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
console.log('1-stateStore.rightDrawer: ', stateStore.rightDrawer);
|
|
||||||
rightPanel.value = document.querySelector('#right-panel');
|
rightPanel.value = document.querySelector('#right-panel');
|
||||||
if (!rightPanel.value) return;
|
if (!rightPanel.value) return;
|
||||||
|
|
||||||
console.log('2-stateStore.rightDrawer: ', stateStore.rightDrawer);
|
|
||||||
// Check if there's content to display
|
|
||||||
const observer = new MutationObserver(() => {
|
const observer = new MutationObserver(() => {
|
||||||
hasContent.value = rightPanel.value.childNodes.length;
|
hasContent.value = rightPanel.value.childNodes.length;
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('3-stateStore.rightDrawer: ', stateStore.rightDrawer);
|
|
||||||
observer.observe(rightPanel.value, {
|
observer.observe(rightPanel.value, {
|
||||||
subtree: true,
|
subtree: true,
|
||||||
childList: true,
|
childList: true,
|
||||||
attributes: true,
|
attributes: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('4-stateStore.rightDrawer: ', stateStore.rightDrawer);
|
|
||||||
if ((!slots['right-panel'] && !hasContent.value) || isMobile)
|
if ((!slots['right-panel'] && !hasContent.value) || isMobile)
|
||||||
stateStore.rightDrawer = false;
|
stateStore.rightDrawer = false;
|
||||||
console.log('5-stateStore.rightDrawer: ', stateStore.rightDrawer);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
|
|
@ -14,11 +14,10 @@ import axios from 'axios';
|
||||||
import useNotify from 'src/composables/useNotify.js';
|
import useNotify from 'src/composables/useNotify.js';
|
||||||
import { useQuasar } from 'quasar';
|
import { useQuasar } from 'quasar';
|
||||||
|
|
||||||
const quasar = useQuasar();
|
|
||||||
const { notify } = useNotify();
|
|
||||||
const route = useRoute();
|
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
console.log(route.params.id);
|
const { notify } = useNotify();
|
||||||
|
const quasar = useQuasar();
|
||||||
|
const route = useRoute();
|
||||||
|
|
||||||
const bankEntitiesRef = ref(null);
|
const bankEntitiesRef = ref(null);
|
||||||
const supplier = ref(null);
|
const supplier = ref(null);
|
||||||
|
|
Loading…
Reference in New Issue