diff --git a/public/index.html b/public/index.html index 3e5a139..47422a4 100644 --- a/public/index.html +++ b/public/index.html @@ -3,8 +3,9 @@ - + + <%= htmlWebpackPlugin.options.title %> diff --git a/src/App.vue b/src/App.vue index 889e4c5..239afcc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,8 @@ @@ -13,16 +14,54 @@ export default { components: { HelloWorld, }, + data() { + return { + sat: undefined, + }; + }, + methods: { + setSat() { + this.sat = getComputedStyle(document.body).getPropertyValue('--sat'); + }, + }, + mounted() { + window.onload = this.setSat; + }, }; diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue index 66b641b..697bf21 100644 --- a/src/components/HelloWorld.vue +++ b/src/components/HelloWorld.vue @@ -42,6 +42,10 @@ export default {