tangning 2 gadi atpakaļ
vecāks
revīzija
fcdf71797e

+ 2 - 1
src/locales/lang/en/code.ts

@@ -21,11 +21,12 @@ export default {
     '4019': 'SN code does not exist!',
     '4020': 'Multiple login attempts detected, please try again in five minutes!',
     '5005': 'Empty scene',
+    '5071': 'Replicated scenes do not enable transfer',
     '50018': 'Camera does not exist!',
     '50031': 'Insufficient camera capacity for migration',
     '50032': 'The scene must migrate under the same camera type!',
     '50044': 'The scene is captured by this camera and no transfer is required!',
     '50034': 'SN code does not exist!',
     '5037': 'Calculating,please wait.',
-  }
+  },
 };

+ 3 - 1
src/locales/lang/zh-CN/code.ts

@@ -21,11 +21,13 @@ export default {
     '4019': 'sn码不存在!',
     '4020': '频繁登录失败,请五分钟后再次尝试登录!',
     '5005': '场景为空',
+    '5071': '复制场景不支持重算',
     '50018': '相机不存在!',
     '50031': '相机容量不足,不能迁移',
     '50032': '必须迁移至相同的类型的相机下面!',
     '50044': '场景在该相机中,无需迁移!',
+    '50055': '原始资源不存在,无法迁移',
     '50034': 'sn码不存在!',
     '5037': '场景正在计算中,请待计算完成后再操作。',
-  }
+  },
 };

+ 3 - 3
src/utils/http/axios/index.ts

@@ -53,7 +53,7 @@ const transform: AxiosTransform = {
     // 这里逻辑可以根据项目进行修改
     const hasSuccess = data && Reflect.has(data, 'code') && code === ResultEnum.SUCCESS;
     if (hasSuccess) {
-      return result ||  data.data;
+      return result || data.data;
     }
 
     // 在此处根据自己项目的实际情况对不同的code执行不同的操作
@@ -67,9 +67,9 @@ const transform: AxiosTransform = {
         userStore.logout(true);
         break;
       default:
-        if(code){
+        if (code) {
           timeoutMsg = t(`code.apiCode.${code}`);
-        }else if (message) {
+        } else if (message) {
           timeoutMsg = message;
         }
     }