Commit da68568064888fd15ab2e3958ef8c0a13953f34f
1 parent
af6dfec6
fix: DEFECT-650 dashboard not echo real data
Showing
2 changed files
with
7 additions
and
1 deletions
... | ... | @@ -13514,6 +13514,7 @@ class HandleDataSource { |
13514 | 13514 | |
13515 | 13515 | handleParamSettingButton(message) { |
13516 | 13516 | const { subscriptionId, data = {} } = message |
13517 | + if (!data) return | |
13517 | 13518 | const node = this.getNodeByCmdId(subscriptionId) |
13518 | 13519 | const { attr } = this.getBindData(subscriptionId) |
13519 | 13520 | const [[timespan, receiveValue] = []] = data[attr] || [] |
... | ... | @@ -13837,7 +13838,7 @@ class HandleDataSource { |
13837 | 13838 | }, |
13838 | 13839 | data: [ |
13839 | 13840 | { |
13840 | - value: 20 | |
13841 | + value | |
13841 | 13842 | } |
13842 | 13843 | ] |
13843 | 13844 | }, | ... | ... |
... | ... | @@ -49,6 +49,11 @@ function createAxios(options) { |
49 | 49 | |
50 | 50 | doRefreshToken() |
51 | 51 | } |
52 | + | |
53 | + const message = error.response && error.response.data && error.response.data.message | |
54 | + const { layer } = layui | |
55 | + message && layer.msg(message, { icon: 5 }) | |
56 | + | |
52 | 57 | return Promise.reject(error); |
53 | 58 | } |
54 | 59 | ); | ... | ... |