fix apple time error

This commit is contained in:
RainSun 2020-03-10 14:20:18 +08:00
parent 74c1ee143e
commit 30442fcf67
2 changed files with 4 additions and 3 deletions

View File

@ -2,8 +2,8 @@ import axios from 'axios'
export const api = axios.create({
// baseURL: 'https://beta.powerrain.cn/api/',
// baseURL: 'https://coc.powerrain.cn/api/',
baseURL: window.location.origin + '/api/',
baseURL: 'https://coc.powerrain.cn/api/',
// baseURL: window.location.origin + '/api/',
// baseURL: 'http://152.136.99.231:8001' + '/api/',
//baseURL: 'http://127.0.0.1:5000/api',
headers: {

View File

@ -190,7 +190,8 @@ export default {
//
getCurrentWeek() {
let start = new Date("2020-02-24 00:00").getTime();
// let start = new Date("2020-02-24 00:00").getTime();
let start = 1582473600000
let now = new Date().getTime();
//
let days = Math.abs(Math.floor((now - start) / (1000 * 60 * 60 * 24)));