Coder Social home page Coder Social logo

请问如果需要通过router的name跳转页面,有没有好的解决方案呢?目前是不是只支持path跳转 about coexisting-vue-microfrontends HOT 5 CLOSED

joeldenning avatar joeldenning commented on July 22, 2024
请问如果需要通过router的name跳转页面,有没有好的解决方案呢?目前是不是只支持path跳转

from coexisting-vue-microfrontends.

Comments (5)

joeldenning avatar joeldenning commented on July 22, 2024

From Bing Translate:

If you need to jump through the router's name jump page, is there a good solution? Currently is not only supporting path jump

@Monroe123 could you provide more detail? I do not understand what "jump through the router's name jump page" means.

from coexisting-vue-microfrontends.

Monroe123 avatar Monroe123 commented on July 22, 2024

I want to jump by this.$router.push({name: xxx, query: {key: value}}), but got an error

from coexisting-vue-microfrontends.

joeldenning avatar joeldenning commented on July 22, 2024

What error did you get?

from coexisting-vue-microfrontends.

mango-csl avatar mango-csl commented on July 22, 2024

What error did you get?

i hava a similar doubt

when i commented out this code in ‘root-html-file/index.html’

// 'root-html-file/index.html'

Promise.all([System.import('single-spa'), System.import('vue'), System.import('vue-router')]).then(function (modules) {   
    //var singleSpa = modules[0];
    //var Vue = modules[1];
    //var VueRouter = modules[2];
    //Vue.use(VueRouter)

it will be error to use router in 'navbar/src/App.vue'

this.$router.push('/navbar')
// this.$router   is  undefined

image

but it works in vue-microfrontends[https://github.com/vue-microfrontends]

from coexisting-vue-microfrontends.

joeldenning avatar joeldenning commented on July 22, 2024

#37 (comment) is a duplicate of #52

I am closing this issue due to inactivity

from coexisting-vue-microfrontends.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.