SilurianYang / uni-simple-router

A simple, lightweight 'uni-app' routing plugin
https://v2.hhyang.cn/v2/
MIT License
749 stars 163 forks source link

设置页面topWindow:false时,router跳转依旧显示topWindow #412

Closed zgsyinwu closed 1 year ago

zgsyinwu commented 2 years ago

问题描述 设置页面topWindow:false时,router跳转依旧显示topWindow。

复现步骤

//pages.json
"pages": [ 
    {
        "path": "pages/login/login",
        "style": {
            "topWindow": false,
            "leftWindow": false,
            "navigationBarTitleText": "",
            "enablePullDownRefresh": false
        }
    }
],
"topWindow": {
    "path": "pages/topWindow",
    "style": {
        "height": "60px"
    }
}
//router.js
const router = createRouter({
    platform: process.env.VUE_APP_PLATFORM,
    h5: {
        vueRouterDev: true, //完全使用vue-router开发 默认 false  
    },
    routes: [{
            path: '/pages/login/login',
            component: () => import('pages/login/login.vue'),
            alias: '/login'
        }
    ]
});

预期结果 topWindow应隐藏

实际结果 topWindow实际显示

image image

系统信息:

补充信息 [可选] [根据你的分析,出现这个问题的原因可能在哪里?]