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项目下引入报错 Cannot read property 'getContext' of null #87

Open
zhourusheng opened this issue Oct 8, 2018 · 2 comments
Open

Comments

@zhourusheng
Copy link

zhourusheng commented Oct 8, 2018

<template> <div id="kline_container"></div> </template>
``<script>
import Kline from 'kline';
var kline = new Kline({
element: "#kline_container",
symbol: "BTC",
symbolName: "比特币",
type: "poll",
url: "http://192.168.0.147:80/index.php/api/index/getKline"
});
kline.draw();
export default {
name: 'k_line',
data() {
return {

	}
}

};
</script>``

image

如何解决?

@wl05
Copy link

wl05 commented Nov 15, 2018

遇到同样问题了

@insist-dream
Copy link

挂载的时候出错了,把事件放在mounted试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants