gemercheung 2 năm trước cách đây
mục cha
commit
a75281e63d

+ 6 - 0
src/api/instance.ts

@@ -72,6 +72,12 @@ addResErrorHandler((response, data) => {
     } else {
       const { t } = useI18n()
       switch (Number(data.code)) {
+        case 8001:
+          message.error(t('base.error8001'));
+          break;
+        case 8005:
+          message.error(t('base.error8005'))
+          break;
         case 4004:
           message.error(t('room.roomOnfired'))
           break;

+ 3 - 1
src/locales/lang/en/base.ts

@@ -24,5 +24,7 @@ export default {
   export: 'Export',
   all: 'All',
   using: 'Using',
-  end: 'End'
+  end: 'End',
+  error8001:"Please check and input accurate account info!",
+  error8005: 'The current studio cannot be authorized for you!',
 }

+ 3 - 1
src/locales/lang/zh/base.ts

@@ -23,5 +23,7 @@ export default {
   export: '导出数据',
   all: '全部',
   using: '使用中',
-  end: '已结束'
+  end: '已结束',
+  error8001:"账号不存在,请核对后输入!",
+  error8005: '不能授权给本人!',
 }

+ 1 - 0
src/views/room/edit-room/index.vue

@@ -369,6 +369,7 @@ export default defineComponent({
           authvisible.value = false
           console.log('current', current)
         } else {
+          
           message.error(t('room.authUserError'))
         }
       } else {