|
@@ -85,18 +85,18 @@ export default {
|
|
|
...mapGetters(["sidebar", "avatar", "name"]),
|
|
|
},
|
|
|
mounted() {
|
|
|
+ // setInterval(() => {
|
|
|
+ // if (this.$store.getters.timeZone == 8) {
|
|
|
+ // this.newData = Format("yyyy/MM/dd hh:mm:ss", new Date());
|
|
|
+ // } else {
|
|
|
+ // this.newData = Format(
|
|
|
+ // "yyyy/MM/dd hh:mm:ss",
|
|
|
+ // new Date(new Date().getTime() - 8 * 60 * 60 * 1000)
|
|
|
+ // );
|
|
|
+ // }
|
|
|
+ // });
|
|
|
setInterval(() => {
|
|
|
- if (this.$store.getters.timeZone == 8) {
|
|
|
- this.newData = Format("yyyy/MM/dd hh:mm:ss", new Date());
|
|
|
- } else {
|
|
|
- // console.log(new Date().toUTCString());
|
|
|
- // console.log(new Date(new Date().getTime() - 8 * 60 * 60 * 1000));
|
|
|
- // let d = new Date().toUTCString();
|
|
|
- this.newData = Format(
|
|
|
- "yyyy/MM/dd hh:mm:ss",
|
|
|
- new Date(new Date().getTime() - 8 * 60 * 60 * 1000)
|
|
|
- );
|
|
|
- }
|
|
|
+ this.newData = Format("yyyy/MM/dd hh:mm:ss", new Date());
|
|
|
});
|
|
|
},
|
|
|
methods: {
|