update logo theme (#39)
This commit is contained in:
1 parent
49b339b897
commit
2c2f35a04c
2 files changed
+9
-1
No files matched your search
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"type": "patch",
|
||||||
|
"comment": "fix logo dark theme",
|
||||||
|
"packageName": "@acedatacloud/hub",
|
||||||
|
"email": "cqc@cuiqingcai.com",
|
||||||
|
"dependentChangeType": "patch"
|
||||||
|
}
|
||||||
@@ -3,6 +3,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
import { getCookie } from 'typescript-cookie';
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
@@ -15,7 +16,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
dark() {
|
dark() {
|
||||||
return this.$store.getters.dark;
|
return getCookie('THEME') === 'dark';
|
||||||
},
|
},
|
||||||
url() {
|
url() {
|
||||||
return this.dark ? this.url2 : this.url1;
|
return this.dark ? this.url2 : this.url1;
|
||||||
|
|||||||
Reference in new issue
Block a user