支持全局异常和统一返回结果
This commit is contained in:
@@ -57,7 +57,7 @@ export default {
|
||||
method: 'get',
|
||||
url:`/api/device/query/${this.deviceId}/sync_status/`,
|
||||
}).then((res) => {
|
||||
if (res.data.code == 0) {
|
||||
if (res.data.code === 0) {
|
||||
if (!this.syncFlag) {
|
||||
this.syncFlag = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user