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

vue 组件在注册的时候会执行两次 #741

Open
clark-t opened this issue Feb 25, 2020 · 0 comments
Open

vue 组件在注册的时候会执行两次 #741

clark-t opened this issue Feb 25, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@clark-t
Copy link
Contributor

clark-t commented Feb 25, 2020

BUG 描述
当 vue 组件存在如下写法的时候:

<script>
console.log('hello')
export default {
  created () {}
}
</script>

会 hello 两次,这也就意味着组件所依赖的外部方法、同样会执行两次,会带来问题;

复现步骤
如上所述

期望结果
希望只 console.log('hello') 1 次

截图
如果合适,添加问题相关的截图

环境及版本信息:

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • 浏览器 Version [e.g. 64]
  • mip-cli 版本

其他信息
其他补充信息

@clark-t clark-t self-assigned this Feb 25, 2020
@clark-t clark-t added the bug Something isn't working label Feb 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant