New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

querystring和锚点位置问题 #2492

Closed
nymlc opened this Issue Nov 21, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@nymlc

nymlc commented Nov 21, 2018

Version

3.0.1

Reproduction link

https://jsfiddle.net/lc642539059/eywraw8t/469850/

Steps to reproduce

根据一个已有的带querystring的url eg: http://localhost:8080/process/page/instance/detail?processInstanceId=2429&type=1
因为前端路由配置,

routes: [{
        path: '/',
        redirect: '/index'
    },{
            path: '/agree',
            name: 'agree',
            component: () => import('@/views/mobile/agree.vue'),
        }]

呈现出来的情况是http://localhost:8080/process/page/instance/detail?processInstanceId=2429&type=1#/index

这时候跳转/agree

this.$router.push({
                    path: 'agree',
                    query: {
                        processInstanceId: this.processInstanceId
                    }
                })

url变成http://localhost:8080/process/page/instance/detail?processInstanceId=2429&type=1#/agree?processInstanceId=2429
页面无法成功跳转
这种情况怎么办呢

What is expected?

页面成功跳转

What is actually happening?

页面无法成功跳转

@posva

This comment has been minimized.

Member

posva commented Nov 21, 2018

Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, the Discord server, gitter or StackOverflow.

@posva posva closed this Nov 21, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment