客户接待主包的一些代码移动到子包内
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
|
||||
| 原始路径 | 显示路径 | 说明 |
|
||||
|---------|---------|------|
|
||||
| `pages/furniture_customer/furniture_customer` | `/customer` | 客户管理页面 |
|
||||
| `pages-subpackage/furniture_customer/furniture_customer` | `/customer` | 客户管理页面 |
|
||||
| `pages/furniture_reception/furniture_reception` | `/reception` | 前台接待页面 |
|
||||
| `pages/furniture_top_sales/furniture_top_sales` | `/top-sales` | 销售冠军页面 |
|
||||
| `pages/ucenter/ucenter` | `/profile` | 个人中心页面 |
|
||||
@@ -51,7 +51,7 @@ onReady() {
|
||||
checkAndHideUrl() {
|
||||
const currentPath = getCurrentPages()[getCurrentPages().length - 1].route;
|
||||
const pathMap = {
|
||||
'pages/furniture_customer/furniture_customer': '/customer',
|
||||
'pages-subpackage/furniture_customer/furniture_customer': '/customer',
|
||||
'pages/furniture_reception/furniture_reception': '/reception',
|
||||
'pages/furniture_top_sales/furniture_top_sales': '/top-sales',
|
||||
'pages/ucenter/ucenter': '/profile'
|
||||
@@ -139,7 +139,7 @@ setupBrowserNavigationHiding() {
|
||||
|
||||
### 原始URL(uni-app内部路由)
|
||||
```
|
||||
pages/furniture_customer/furniture_customer
|
||||
pages-subpackage/furniture_customer/furniture_customer
|
||||
```
|
||||
|
||||
### 优化后URL(用户在地址栏看到)
|
||||
@@ -154,8 +154,8 @@ http://localhost:8081/customer
|
||||
```
|
||||
🎯 初始化完美URL隐藏系统
|
||||
🚀 开始初始化URL隐藏功能
|
||||
📍 当前页面路径: pages/furniture_customer/furniture_customer
|
||||
🔄 URL隐藏: #/pages/furniture_customer/furniture_customer -> #/customer
|
||||
📍 当前页面路径: pages-subpackage/furniture_customer/furniture_customer
|
||||
🔄 URL隐藏: #/pages-subpackage/furniture_customer/furniture_customer -> #/customer
|
||||
✅ URL隐藏成功
|
||||
🛡️ URL保护机制已启动
|
||||
```
|
||||
@@ -182,7 +182,7 @@ http://localhost:8081/customer
|
||||
"custom": false,
|
||||
"list": [
|
||||
{
|
||||
"pagePath": "pages/furniture_customer/furniture_customer",
|
||||
"pagePath": "pages-subpackage/furniture_customer/furniture_customer",
|
||||
"text": "客户"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user