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

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

No files matched your search

+2 -1
View File
@@ -53,8 +53,9 @@ export default {
default: () => ({})
},
data () {
const timestamp = Date.now()
return {
gradientId: `water-level-pond-${(new Date()).getTime()}`,
gradientId: `water-level-pond-${timestamp}`,
defaultConfig: {
/**