|
@@ -190,12 +190,15 @@ export default {
|
|
|
domain: this.$route.params.domain
|
|
|
});
|
|
|
let data = response.data;
|
|
|
- if (Math.abs(moment(response.headers.date).diff(moment())) > 30 * 1000) {
|
|
|
+ if (
|
|
|
+ Math.abs(moment(response.headers.date).diff(moment())) >
|
|
|
+ 5 * 60 * 1000
|
|
|
+ ) {
|
|
|
this.$Message.error({
|
|
|
- content: "与服务器时间差异超过30秒,请校准本机时间之后再重试!",
|
|
|
+ content: "与服务器时间差异超过5分钟,请校准本机时间之后再重试!",
|
|
|
duration: 30
|
|
|
});
|
|
|
- throw "与服务器时间差异超过30秒,请校准本机时间之后再重试!";
|
|
|
+ throw "与服务器时间差异超过5分钟,请校准本机时间之后再重试!";
|
|
|
}
|
|
|
if (data.token) {
|
|
|
this.errorInfo = "";
|