Explorar o código

fix(student page): 修复错误码判断逻辑

将原有的e.code === 123改为直接判断e === 123,修正错误匹配逻辑
lsc hai 3 días
pai
achega
597eea6901
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/Student/index.vue

+ 1 - 1
src/views/Student/index.vue

@@ -3923,7 +3923,7 @@ const addOp3 = async (userTime: any, loadTime: any, object: any, status: any) =>
   }
   catch (e) {
     console.log(e)
-    if (e.code === 123) {
+    if (e === 123) {
       // message.error('登录已过期,请重新登录')
       return
     }