Skip to content

Commit 5271b29

Browse files
committed
fix: remove debug logs
1 parent 6e361b4 commit 5271b29

File tree

1 file changed

+0
-68
lines changed

1 file changed

+0
-68
lines changed

adminforth/spa/src/App.vue

Lines changed: 0 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -234,77 +234,9 @@ const expandedWidth = computed(() => coreStore.config?.iconOnlySidebar?.expanded
234234
const theme = ref('light');
235235
236236
const userMenuComponents = computed(() => {
237-
console.log('🪲🆕 userMenuComponents recomputed', JSON.parse(JSON.stringify(coreStore?.config?.globalInjections?.userMenu)));
238237
return coreStore?.config?.globalInjections?.userMenu || [];
239238
})
240239
241-
watch(
242-
() => coreStore.config?.globalInjections?.userMenu,
243-
(newVal, oldVal) => {
244-
// Only log when it becomes undefined (you can relax this if needed)
245-
if (newVal === undefined) {
246-
const err = new Error('🔍 userMenu changed to undefined');
247-
console.groupCollapsed(
248-
'%c[TRACE] userMenu changed to undefined',
249-
'color: red; font-weight: bold;'
250-
);
251-
console.log('old value:', oldVal);
252-
console.log('new value:', newVal);
253-
console.log('coreStore.config.globalInjections:', coreStore.config?.globalInjections);
254-
console.log('Stack trace:');
255-
console.log(err.stack);
256-
console.groupEnd();
257-
} else {
258-
// Optional: log ALL changes for debugging
259-
console.groupCollapsed(
260-
'%c[DEBUG] userMenu changed',
261-
'color: orange; font-weight: bold;'
262-
);
263-
console.log('old value:', oldVal);
264-
console.log('new value:', newVal);
265-
console.log('coreStore.config.globalInjections:', coreStore.config?.globalInjections);
266-
console.groupEnd();
267-
}
268-
},
269-
{
270-
deep: false,
271-
immediate: false,
272-
}
273-
);
274-
275-
watch(() => coreStore.config?.globalInjections, (v) => {
276-
console.log("🔧 globalInjections replaced:", v);
277-
}, { deep: false });
278-
279-
watch(
280-
() => coreStore.config?.globalInjections?.userMenu,
281-
(newVal, oldVal) => {
282-
if (newVal === undefined) {
283-
const err = new Error('🔍 userMenu changed to undefined');
284-
console.groupCollapsed(
285-
'%c[TRACE] userMenu changed to undefined',
286-
'color: red; font-weight: bold;'
287-
);
288-
console.log('old value:', oldVal);
289-
console.log('new value:', newVal);
290-
console.log('coreStore.config.globalInjections:', coreStore.config?.globalInjections);
291-
console.log('Stack trace:');
292-
console.log(err.stack);
293-
console.groupEnd();
294-
} else {
295-
console.groupCollapsed(
296-
'%c[DEBUG] userMenu changed',
297-
'color: orange; font-weight: bold;'
298-
);
299-
console.log('old value:', oldVal);
300-
console.log('new value:', newVal);
301-
console.log('coreStore.config.globalInjections:', coreStore.config?.globalInjections);
302-
console.groupEnd();
303-
}
304-
},
305-
{ deep: false, immediate: false }
306-
);
307-
308240
function hideSidebar(): void {
309241
sideBarOpen.value = false;
310242
}

0 commit comments

Comments
 (0)