Commit edea5760ead9a566767d9a359d057ef114b73962

Authored by ly525
1 parent 8c6056f9

fix: do not generate page uuid and set uuid from api

front-end/h5/src/components/core/models/page.js
... ... @@ -3,7 +3,7 @@ import LbpBackground from '../../plugins/lbp-background'
3 3  
4 4 class Page {
5 5 constructor (page = {}) {
6   - this.uuid = +new Date()
  6 + this.uuid = page.uuid || +new Date()
7 7 this.title = page.title || ''
8 8 this.elements = page.elements || [new Element(LbpBackground)]
9 9 }
... ...