|
|
@@ -1,12 +1,12 @@
|
|
|
import { Routes } from '@angular/router';
|
|
|
-// import { WxworkAuthGuard } from 'fmode-ng'; // 临时禁用以解决初始化问题
|
|
|
+import { WxworkAuthGuard } from 'fmode-ng/social';
|
|
|
|
|
|
export const routes: Routes = [
|
|
|
// 客服路由
|
|
|
{
|
|
|
path: 'customer-service',
|
|
|
loadComponent: () => import('./pages/customer-service/customer-service-layout/customer-service-layout').then(m => m.CustomerServiceLayout),
|
|
|
- // canActivate: [WxworkAuthGuard], // 临时禁用
|
|
|
+ canActivate: [WxworkAuthGuard],
|
|
|
children: [
|
|
|
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
|
|
|
{
|
|
|
@@ -61,7 +61,7 @@ export const routes: Routes = [
|
|
|
// 设计师路由
|
|
|
{
|
|
|
path: 'designer',
|
|
|
- // canActivate: [WxworkAuthGuard], // 临时禁用
|
|
|
+ canActivate: [WxworkAuthGuard],
|
|
|
children: [
|
|
|
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
|
|
|
{
|
|
|
@@ -85,7 +85,7 @@ export const routes: Routes = [
|
|
|
// 组长路由
|
|
|
{
|
|
|
path: 'team-leader',
|
|
|
- // canActivate: [WxworkAuthGuard], // 临时禁用用于开发测试
|
|
|
+ canActivate: [WxworkAuthGuard],
|
|
|
children: [
|
|
|
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
|
|
|
{
|
|
|
@@ -125,7 +125,7 @@ export const routes: Routes = [
|
|
|
// 财务路由
|
|
|
{
|
|
|
path: 'finance',
|
|
|
- // canActivate: [WxworkAuthGuard], // 临时禁用
|
|
|
+ canActivate: [WxworkAuthGuard],
|
|
|
children: [
|
|
|
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
|
|
|
{
|
|
|
@@ -160,7 +160,7 @@ export const routes: Routes = [
|
|
|
{
|
|
|
path: 'hr',
|
|
|
loadComponent: () => import('./pages/hr/hr-layout/hr-layout').then(m => m.HrLayout),
|
|
|
- // canActivate: [WxworkAuthGuard], // 临时禁用
|
|
|
+ canActivate: [WxworkAuthGuard],
|
|
|
children: [
|
|
|
{
|
|
|
path: 'dashboard',
|
|
|
@@ -185,7 +185,7 @@ export const routes: Routes = [
|
|
|
{
|
|
|
path: 'admin',
|
|
|
loadComponent: () => import('./pages/admin/admin-layout/admin-layout').then(m => m.AdminLayout),
|
|
|
- // canActivate: [WxworkAuthGuard], // 临时禁用
|
|
|
+ canActivate: [WxworkAuthGuard],
|
|
|
children: [
|
|
|
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
|
|
|
{
|
|
|
@@ -310,7 +310,7 @@ export const routes: Routes = [
|
|
|
// 2. 网页端: 通过 contactId/projectId 直接加载,配合 profileId 参数
|
|
|
{
|
|
|
path: 'wxwork/:cid',
|
|
|
- // canActivate: [WxworkAuthGuard], // 可选:使用路由守卫强制认证
|
|
|
+ canActivate: [WxworkAuthGuard],
|
|
|
children: [
|
|
|
// 项目预加载页(企微上下文入口)
|
|
|
{
|