|
|
@ -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 |
|
|
|
this.themeConfiguration = response.data.data |
|
|
|
var that = this |
|
|
|
this.loadSettings() |
|
|
|
setTimeout(function() { |
|
|
|
this.getThemeProperty(themeId) |
|
|
|
themeApi.fetchConfiguration(themeId).then(response => { |
|
|
|
|
|
|
|
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 = {} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|