🐛 修改组件 ID 时间戳的生成方式

This commit is contained in:
Xiaoleng123
2019-09-09 21:17:50 +08:00
parent b511e3d786
commit 856e43dc09
8 changed files with 31 additions and 23 deletions

View File

@ -19,9 +19,10 @@ export default {
}
},
data () {
const timestamp = Date.now()
return {
ref: `charts-container-${(new Date()).getTime()}`,
chartRef: `chart-${(new Date()).getTime()}`,
ref: `charts-container-${timestamp}`,
chartRef: `chart-${timestamp}`,
chart: null
}