From 7de1396e315896dbc72a9d54e44f77434ea90f18 Mon Sep 17 00:00:00 2001
From: wlzboy <66905212@qq.com>
Date: 星期日, 14 十二月 2025 23:47:34 +0800
Subject: [PATCH] feat:增加企业微信自动登录
---
ruoyi-ui/src/router/index.js | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 55 insertions(+), 1 deletions(-)
diff --git a/ruoyi-ui/src/router/index.js b/ruoyi-ui/src/router/index.js
index 635a020..81cbe25 100644
--- a/ruoyi-ui/src/router/index.js
+++ b/ruoyi-ui/src/router/index.js
@@ -5,6 +5,7 @@
/* Layout */
import Layout from '@/layout'
+import qywechatRouter from './modules/qywechat'
/**
* Note: 璺敱閰嶇疆椤�
@@ -58,6 +59,18 @@
meta: { title: '鍖垮悕璁㈠崟鏌ョ湅', icon: 'eye',anonymous: true }
},
{
+ path: '/evaluation',
+ component: () => import('@/views/evaluation/index'),
+ hidden: true,
+ meta: { title: '瀹㈡埛璇勪环', anonymous: true }
+ },
+ {
+ path: '/evaluation/test',
+ component: () => import('@/views/evaluation/test'),
+ hidden: true,
+ meta: { title: '璇勪环鍔熻兘娴嬭瘯', anonymous: true }
+ },
+ {
path: '/404',
component: () => import('@/views/error/404'),
hidden: true
@@ -106,11 +119,38 @@
component: () => import('@/views/anonymous/test'),
hidden: true,
meta: { title: '鍖垮悕璁块棶娴嬭瘯', anonymous: true }
+ }, {
+ path: '/system/gps/map',
+ component: () => import('@/views/system/gps/map'),
+ name: 'GpsMap',
+ hidden: true,
+ meta: { title: '杞﹁締杞ㄨ抗', showMenu: false, icon: 'map' ,anonymous: true}
+ },
+ {
+ path: '/payInfoTest',
+ component: (resolve) => require(['@/views/system/payInfoTest/index'], resolve),
+ hidden: true,
+ meta: { title: '鏀粯淇℃伅娴嬭瘯', anonymous: true }
+ }
+ ,{
+ path: '/system/gps/mapNeed',
+ component: () => import('@/views/system/gps/mapNeed'),
+ name: 'GpsMapNeed',
+ meta: { title: '杞﹁締杞ㄨ抗', icon: 'map' }
+ },
+
+ {
+ path: '/h5/task_create',
+ component: () => import('@/views/task/h5/create'),
+ hidden: false,
+ name: 'H5TaskCreate',
+ meta: { title: '鍒涘缓浠诲姟' }
}
]
// 鍔ㄦ�佽矾鐢憋紝鍩轰簬鐢ㄦ埛鏉冮檺鍔ㄦ�佸幓鍔犺浇
export const dynamicRoutes = [
+ qywechatRouter,
{
path: '/system/user-auth',
component: Layout,
@@ -180,6 +220,20 @@
meta: { title: '淇敼鐢熸垚閰嶇疆', activeMenu: '/tool/gen' }
}
]
+ },
+ {
+ path: '/task/general-detail',
+ component: Layout,
+ hidden: true,
+ permissions: ['task:general:query'],
+ children: [
+ {
+ path: 'index/:taskId(\\d+)',
+ component: () => import('@/views/task/general/detail'),
+ name: 'TaskDetail',
+ meta: { title: '浠诲姟璇︽儏', activeMenu: '/task/general' }
+ }
+ ]
}
]
@@ -196,7 +250,7 @@
}
export default new Router({
- mode: 'history', // 鍘绘帀url涓殑#
+ mode: 'history', // 浣跨敤history妯″紡,URL鏇寸編瑙�
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes
})
--
Gitblit v1.9.1