Skip to content

Commit edea576

Browse files
committed
fix: do not generate page uuid and set uuid from api
1 parent 8c6056f commit edea576

File tree

1 file changed

+1
-1
lines changed
  • front-end/h5/src/components/core/models

1 file changed

+1
-1
lines changed

front-end/h5/src/components/core/models/page.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import LbpBackground from '../../plugins/lbp-background'
33

44
class Page {
55
constructor (page = {}) {
6-
this.uuid = +new Date()
6+
this.uuid = page.uuid || +new Date()
77
this.title = page.title || ''
88
this.elements = page.elements || [new Element(LbpBackground)]
99
}

0 commit comments

Comments
 (0)