Initialization theme is no problem, will be displayed, I pass themes.register Four styles have been registered, but the four styles can only be changed once a page. After all the four styles have been changed, you need to turn the page before you can change them themes.select Will change the style, I hope you can guide, thank you very much
initialization
themes.forEach(theme => {
this.rendition.themes.register(theme.name, theme.style)
})
this.rendition.themes.select(defaultTheme)
Click Replace
setTheme (index) {
const name = this.themeList[index].name
this.setDefaultTheme(name).then(() => {
this.rendition.themes.select(this.defaultTheme)
})
setTheme(this.fileName, name)
}