🐛 修改组件 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

@ -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: {
/**