From ce24f31ca213fd677b02a6e08235bbddf269f4f7 Mon Sep 17 00:00:00 2001
From: 陈婷婷 <506607603@qq.com>
Date: 星期一, 26 一月 2026 10:37:55 +0800
Subject: [PATCH] tms登录页面
---
src/store/modules/permission.js | 37 ++++++++++++++++++++++---------------
1 files changed, 22 insertions(+), 15 deletions(-)
diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js
index a8591ae..013c679 100644
--- a/src/store/modules/permission.js
+++ b/src/store/modules/permission.js
@@ -4,7 +4,7 @@
import Layout from "@/layout/index";
import ParentView from "@/components/ParentView";
import InnerLink from "@/layout/components/InnerLink";
-
+import { getLoginPageSource } from "@/utils/loginSource"; // 瀵煎叆鐧诲綍鏉ユ簮鍒ゆ柇宸ュ叿
const permission = {
state: {
routes: [],
@@ -31,6 +31,10 @@
actions: {
// 鐢熸垚璺敱
GenerateRoutes({ commit }) {
+ // 绀轰緥锛氭牴鎹櫥褰曟潵婧愭墽琛屼笉鍚岀殑閫昏緫
+ const loginSource = getLoginPageSource();
+ console.log(`鐢ㄦ埛浠� ${loginSource} 椤甸潰鐧诲綍`);
+
return new Promise((resolve) => {
// 鍚戝悗绔姹傝矾鐢辨暟鎹�
let data = [
@@ -88,21 +92,24 @@
path: "WayBillPaymentBill",
redirect: "noRedirect",
component: "Layout",
- children: [{
- meta: {
- icon: "build",
- link: null,
- noCache: false,
- title: "杩愬崟璐圭敤缁撶畻鍗�",
+ children: [
+ {
+ meta: {
+ icon: "build",
+ link: null,
+ noCache: false,
+ title: "杩愬崟璐圭敤缁撶畻鍗�",
+ },
+ component: () =>
+ import(
+ "@/views/logistics/WayBillPaymentBill/Pay_WayBillPaymentBillList.vue"
+ ),
+ hidden: false,
+ name: "payWayBillPaymentBillList",
+ path: "PayWayBillPaymentBillList",
},
- component: () =>
- import("@/views/logistics/WayBillPaymentBill/Pay_WayBillPaymentBillList.vue"),
- hidden: false,
- name: "payWayBillPaymentBillList",
- path: "PayWayBillPaymentBillList",
- }
- ]
- }
+ ],
+ },
],
},
{
--
Gitblit v1.9.1