diff --git a/vue.config.js b/vue.config.js index 75cef9d..d98e27c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -45,6 +45,12 @@ module.exports = defineConfig({ }, devServer: { port: 8080, + client: { + overlay: { + // ResizeObserver loop 是浏览器规范允许的良性通知,不是真实错误,过滤掉避免干扰开发 + runtimeErrors: (err) => err?.message !== 'ResizeObserver loop completed with undelivered notifications.' + } + }, proxy: { '^/api': { target: process.env.VUE_APP_PROXY_TARGET,