Ver código fonte

默认跳转到水稻cd页面

yangtaodemon 2 meses atrás
pai
commit
11205b3471
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/views/login/loginView.vue

+ 2 - 2
src/views/login/loginView.vue

@@ -250,7 +250,7 @@ const onSubmit = async () => {
     });
 
     // 跳转到目标页面
-    await router.push({ name: 'samplingMethodDevice1' });
+    await router.push({ name: 'CropCadmiumPrediction' });
 
   } catch (error: any) {
     console.error('登录失败:', {
@@ -305,7 +305,7 @@ const onRegister = async () => {
           });
 
           // 跳转到目标页面
-          await router.push({ name: 'samplingMethodDevice1' });
+          await router.push({ name: 'CropCadmiumPrediction' });
         } else {
           showErrorMsg(loginResponse.data?.message || '自动登录失败,请手动登录');
           toggleForm(); // 返回登录页面