wenhongquan 2 lat temu
rodzic
commit
ae391529d6

+ 1 - 1
ruoyi-ui-vue3/src/components/Breadcrumb/index.vue

@@ -63,4 +63,4 @@ getBreadcrumb();
     cursor: text;
   }
 }
-</style>
+</style>

+ 13 - 13
ruoyi-ui-vue3/src/router/index.js

@@ -57,19 +57,19 @@ export const constantRoutes = [
     component: () => import("@/views/error/401"),
     hidden: true,
   },
-  {
-    path: "",
-    component: Layout,
-    redirect: "/index",
-    children: [
-      {
-        path: "/index",
-        component: () => import("@/views/index"),
-        name: "Index",
-        meta: { title: "首页", icon: "dashboard", affix: true },
-      },
-    ],
-  },
+  // {
+  //   path: "",
+  //   component: Layout,
+  //   redirect: "/index",
+  //   children: [
+  //     {
+  //       path: "/index",
+  //       component: () => import("@/views/index"),
+  //       name: "Index",
+  //       meta: { title: "首页", icon: "dashboard", affix: true },
+  //     },
+  //   ],
+  // },
   {
     path: "/user",
     component: Layout,

+ 1 - 1
ruoyi-ui-vue3/src/views/error/401.vue

@@ -12,7 +12,7 @@
         <h6>对不起,您没有访问权限,请不要进行非法操作!您可以返回主页面</h6>
         <ul class="list-unstyled">
           <li class="link-type">
-            <router-link to="/">
+            <router-link to="/device/device">
               回首页
             </router-link>
           </li>

+ 1 - 1
ruoyi-ui-vue3/src/views/error/404.vue

@@ -17,7 +17,7 @@
         <div class="bullshit__info">
           对不起,您正在寻找的页面不存在。尝试检查URL的错误,然后按浏览器上的刷新按钮或尝试在我们的应用程序中找到其他内容。
         </div>
-        <router-link to="/index" class="bullshit__return-home">
+        <router-link to="/device/device" class="bullshit__return-home">
           返回首页
         </router-link>
       </div>

+ 1 - 1
ruoyi-ui-vue3/src/views/login.vue

@@ -114,7 +114,7 @@ function handleLogin() {
       }
       // 调用action的登录方法
       userStore.login(loginForm.value).then(() => {
-        router.push({ path: redirect.value || "/" });
+        router.push({ path: redirect.value || "/device/device" });
       }).catch(() => {
         loading.value = false;
         // 重新获取验证码