update logo theme (#39)

This commit is contained in:
AceDataCloud committed 2024-05-11 18:01:33 +08:00
1 parent 49b339b897
commit 2c2f35a04c
2 files changed
+9 -1

No files matched your search

+2 -1
View File
@@ -3,6 +3,7 @@
</template>
<script lang="ts">
import { getCookie } from 'typescript-cookie';
import { defineComponent } from 'vue';
export default defineComponent({
@@ -15,7 +16,7 @@ export default defineComponent({
},
computed: {
dark() {
return this.$store.getters.dark;
return getCookie('THEME') === 'dark';
},
url() {
return this.dark ? this.url2 : this.url1;