Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法阻止 productionTip #7565

Comments

@dear-lizhihua
Copy link

Version

2.5.13

Reproduction link

https://jsfiddle.net/50wL7mdz/94674/

Steps to reproduce

<script>
  // 这里无法阻止 console.log/console.info,因为 Vue 还没是 undefined。
  // Vue.config.productionTip = false
</script>
<script src="/node_modules/vue/dist/vue.js"></script>
<script>
  // 如果在这里阻止 console,生产提示已经输出到控制台
  Vue.config.productionTip = false
</script>

### What is expected?
阻止 productionTip

### What is actually happening?
无法阻止 productionTip

---
https://github.com/vuejs/vue/commit/a5835c2abf7c9e9db59ee51728e5a2e8d934b097

<!-- generated by vue-issues. DO NOT REMOVE -->
@dear-lizhihua
Copy link
Author

[email protected]
// line 8422
Vue$3.nextTick -> setTimeout
改成 setTimeout 就好了……

@dear-lizhihua
Copy link
Author

发现 Vue.config.devtools 也无法生效,line 8422 改成 setTimeout 就可以。

lovelope pushed a commit to lovelope/vue that referenced this issue Feb 1, 2018
f2009 pushed a commit to f2009/vue that referenced this issue Jan 25, 2019
aJean pushed a commit to aJean/vue that referenced this issue Aug 19, 2020
@xingye12
Copy link

直接改vue.js的productiontip=false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment