Commit be25158c authored by 骆瑛's avatar 骆瑛

修改bug

parent 3760a310
...@@ -132,6 +132,7 @@ export default { ...@@ -132,6 +132,7 @@ export default {
width: 140, width: 140,
hide: true hide: true
}, },
{ {
key: "plan_finish", key: "plan_finish",
title: this.l("plan_finish"), title: this.l("plan_finish"),
...@@ -147,6 +148,14 @@ export default { ...@@ -147,6 +148,14 @@ export default {
easy: true, easy: true,
high: true high: true
}, },
{
key: "aaa",
title: '设备类型信息',
align: "left",
easy: true,
high: true,
// hide: true
},
{ {
key: "setup_time", key: "setup_time",
title: this.l("setup_time"), title: this.l("setup_time"),
......
...@@ -427,7 +427,6 @@ export default { ...@@ -427,7 +427,6 @@ export default {
} }
}); });
}, },
addOk() { addOk() {
this.list = []; this.list = [];
this.loadList(); this.loadList();
......
...@@ -74,7 +74,7 @@ const service = axios.create({ ...@@ -74,7 +74,7 @@ const service = axios.create({
return fmt; return fmt;
} }
Date.prototype.toJSON = function () { Date.prototype.toJSON = function() {
return dateFormat(this, 'yyyy-MM-ddThh:mm:ss.SSSZ') return dateFormat(this, 'yyyy-MM-ddThh:mm:ss.SSSZ')
} }
return JSON.stringify(data) return JSON.stringify(data)
...@@ -134,11 +134,10 @@ service.interceptors.response.use( ...@@ -134,11 +134,10 @@ service.interceptors.response.use(
}, },
error => { error => {
const token = sessionStorage.getItem('token'); const token = sessionStorage.getItem('token');
if (!token&&!error.response) { if (!token && !error.response) {
window.location.href = '/account/login'; window.location.href = '/account/login';
return; return;
} }
if (error && error.response) { if (error && error.response) {
// return; // return;
if (error.response.status == "401") { if (error.response.status == "401") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment