fix(dashboard): suppress known Vuetify 4 internal slot invocation warning

Vuetify 4's VDefaultsProvider triggers "Slot default invoked outside of
render function" internally - not fixable from our side without framework
changes. Suppress via Vue warnHandler.
This commit is contained in:
LIghtJUNction
2026-03-28 16:20:23 +08:00
parent 495ca70ec5
commit f000a21c01

View File

@@ -124,6 +124,13 @@ async function initApp() {
async function createAndMountApp(waitForRouter: boolean) {
const app = createApp(App);
// Suppress known Vuetify 4 internal warning about slot invocation
app.config.warnHandler = (msg, _instance, _trace) => {
if (msg.includes("Slot \"default\" invoked outside of the render function")) return;
console.warn(msg);
};
app.use(router);
const pinia = createPinia();
app.use(pinia);