|
@@ -126,7 +126,8 @@ export default {
|
|
mounted() {
|
|
mounted() {
|
|
let that = this;
|
|
let that = this;
|
|
$(document).keydown((event) => {
|
|
$(document).keydown((event) => {
|
|
- if (event.keyCode == 67) { // c
|
|
|
|
|
|
+ if (event.keyCode == 67) {
|
|
|
|
+ // c
|
|
let firstDate = new Date();
|
|
let firstDate = new Date();
|
|
if (that.firsttime == 0) {
|
|
if (that.firsttime == 0) {
|
|
that.firsttime = firstDate.getTime();
|
|
that.firsttime = firstDate.getTime();
|
|
@@ -160,7 +161,7 @@ export default {
|
|
this.$store.state.themeName === "dark"
|
|
this.$store.state.themeName === "dark"
|
|
? (this.themeName = false)
|
|
? (this.themeName = false)
|
|
: (this.themeName = true);
|
|
: (this.themeName = true);
|
|
- localStorage.setItem("authToken", this.$store.state.themeName);
|
|
|
|
|
|
+ localStorage.setItem("themeName", this.$store.state.themeName);
|
|
},
|
|
},
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|