yujinwen 7 months ago
parent
commit
4defcbf7bf
1 changed files with 7 additions and 2 deletions
  1. 7 2
      src/views/EvaluationResult.vue

+ 7 - 2
src/views/EvaluationResult.vue

@@ -13,13 +13,18 @@ async function handleSaveResult() {
     })
     })
     return
     return
   }
   }
-  await apiUser.saveEvaluationResult({ data: decodeURIComponent(route.query.result)})
+  cosnt res=await apiUser.saveEvaluationResult({ data: decodeURIComponent(route.query.result)})
+  if(res.Ret!==200){
+    setTimeout(() => {
+      Toast(res.Msg)
+    }, 500);
+  }
 
 
 }
 }
 handleSaveResult()
 handleSaveResult()
 
 
 function handleBack() {
 function handleBack() {
-  wx.miniProgram.navigateTo({
+  wx.miniProgram.switchTab({
     url: `/pages/index/index`,
     url: `/pages/index/index`,
   });
   });
 }
 }