wlzboy
5 天以前 7de1396e315896dbc72a9d54e44f77434ea90f18
ruoyi-ui/src/router/index.js
@@ -5,6 +5,7 @@
/* Layout */
import Layout from '@/layout'
import qywechatRouter from './modules/qywechat'
/**
 * Note: 路由配置项
@@ -149,6 +150,7 @@
// 动态路由,基于用户权限动态去加载
export const dynamicRoutes = [
  qywechatRouter,
  {
    path: '/system/user-auth',
    component: Layout,
@@ -248,7 +250,7 @@
}
export default new Router({
  mode: 'hash', // 使用hash模式,兼容性更好
  mode: 'history', // 使用history模式,URL更美观
  scrollBehavior: () => ({ y: 0 }),
  routes: constantRoutes
})