浏览代码

增加sis跳转该系统功能

baiyanting 1 年之前
父节点
当前提交
9e697f5cb0
共有 2 个文件被更改,包括 13 次插入1 次删除
  1. 1 1
      src/pages/check/check.vue
  2. 12 0
      src/router/index.js

+ 1 - 1
src/pages/check/check.vue

@@ -46,7 +46,7 @@ export default {
           store.commit("user/SET_TOKEN", res);
 
           Login({ userId: res.userId, token: res.accessToken }).then((res) => {
-            if (res.code == 200) {
+            if (res.code == 0&&res.data.code==200) {
               ElMessage.success("登录成功");
               router.push("/");
             }

+ 12 - 0
src/router/index.js

@@ -203,6 +203,18 @@ const routes = [
         "../pages/Login.vue"
       ),
   },
+  {
+    path: "/check",
+    name: "Check",
+    meta: {
+      title: "单点登录",
+    },
+    component: () =>
+      import(
+        /* webpackChunkName: "login" */
+        "@/pages/check/index.vue"
+      ),
+  },
 ];
 
 const router = createRouter({