|
|
@ -119,6 +119,7 @@
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { PageView } from '@/layouts'
|
|
|
|
import { PageView } from '@/layouts'
|
|
|
|
import themeApi from '@/api/theme'
|
|
|
|
import themeApi from '@/api/theme'
|
|
|
|
|
|
|
|
import { setTimeout } from 'timers'
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
@ -154,12 +155,15 @@ export default {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
settingDrawer(themeId) {
|
|
|
|
settingDrawer(themeId) {
|
|
|
|
themeApi.fetchConfiguration(themeId).then(response => {
|
|
|
|
this.visible = true
|
|
|
|
this.visible = true
|
|
|
|
var that = this
|
|
|
|
this.themeConfiguration = response.data.data
|
|
|
|
setTimeout(function() {
|
|
|
|
this.loadSettings()
|
|
|
|
themeApi.fetchConfiguration(themeId).then(response => {
|
|
|
|
this.getThemeProperty(themeId)
|
|
|
|
that.themeConfiguration = response.data.data
|
|
|
|
})
|
|
|
|
that.loadSettings()
|
|
|
|
|
|
|
|
that.getThemeProperty(themeId)
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}, 500)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
activeTheme(theme) {
|
|
|
|
activeTheme(theme) {
|
|
|
|
themeApi.active(theme).then(response => {
|
|
|
|
themeApi.active(theme).then(response => {
|
|
|
@ -190,6 +194,8 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onClose() {
|
|
|
|
onClose() {
|
|
|
|
this.visible = false
|
|
|
|
this.visible = false
|
|
|
|
|
|
|
|
this.themeConfiguration = {}
|
|
|
|
|
|
|
|
this.themeProperty = {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|