Skip to content

Commit

Permalink
update logo theme (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
AceDataCloud committed May 11, 2024
1 parent 49b339b commit 2c2f35a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix logo dark theme",
"packageName": "@acedatacloud/hub",
"email": "cqc@cuiqingcai.com",
"dependentChangeType": "patch"
}
3 changes: 2 additions & 1 deletion src/components/common/Logo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
</template>

<script lang="ts">
import { getCookie } from 'typescript-cookie';
import { defineComponent } from 'vue';
export default defineComponent({
Expand All @@ -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;
Expand Down

0 comments on commit 2c2f35a

Please sign in to comment.