From 542f73f0e64b9cb4963a869e61d53993770912b5 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 04 三月 2024 14:18:21 +0800 Subject: [PATCH] update 优化 支持全局开启或关闭接口加密功能 --- src/router/index.ts | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 9540ab2..0792d8e 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,4 +1,4 @@ -import { createWebHistory, createRouter, RouteOption } from 'vue-router'; +import { createWebHistory, createRouter, RouteRecordRaw } from 'vue-router'; /* Layout */ import Layout from '@/layout/index.vue'; @@ -25,7 +25,7 @@ */ // 鍏叡璺敱 -export const constantRoutes: RouteOption[] = [ +export const constantRoutes: RouteRecordRaw[] = [ { path: '/redirect', component: Layout, @@ -36,6 +36,11 @@ component: () => import('@/views/redirect/index.vue') } ] + }, + { + path: '/social-callback', + hidden: true, + component: () => import('@/layout/components/SocialCallback/index.vue') }, { path: '/login', @@ -87,7 +92,7 @@ ]; // 鍔ㄦ�佽矾鐢憋紝鍩轰簬鐢ㄦ埛鏉冮檺鍔ㄦ�佸幓鍔犺浇 -export const dynamicRoutes: RouteOption[] = [ +export const dynamicRoutes: RouteRecordRaw[] = [ { path: '/system/user-auth', component: Layout, @@ -134,7 +139,7 @@ path: '/system/oss-config', component: Layout, hidden: true, - permissions: ['system:oss:list'], + permissions: ['system:ossConfig:list'], children: [ { path: 'index', -- Gitblit v1.9.3