diff --git a/src/core/service/plugins/index.js b/src/core/service/plugins/index.js index d57a4784326dd560fa5f058905f435a8bb16ac6a..fb2350724f6eb66a7443d2e018db1f22a504716c 100644 --- a/src/core/service/plugins/index.js +++ b/src/core/service/plugins/index.js @@ -59,7 +59,17 @@ function getLocation (base = '/') { export default { install (Vue, { routes - } = {}) { + } = {}) { + if ( + __PLATFORM__ === 'h5' && + Vue.config.devtools && + typeof window !== 'undefined' && + window.navigator.userAgent.toLowerCase().indexOf('hbuilderx') !== -1 + ) { + // HBuilderX 内置浏览器禁用 devtools 提示 + Vue.config.devtools = false + } + initPolyfill(Vue) lifecycleMixin(Vue)