mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user