小编Dav*_*ans的帖子

How to replace one parameter in Vuejs router

We have a multi-level multi-tenant application, where the hostname identifies the 'supplier' account, but the customer account is actually part of the URL.

For instance, we have routes set up as follows:

/:locale/app/:customer_id/invoices
Run Code Online (Sandbox Code Playgroud)

At the top of the page, we have a drop down with all customer ID's the user has access to. The idea basically is that when a user changes the customer, the route changes from /nl/app/4/invoices to /nl/app/5/invoicesfor instance. So basically what I want to do …

vue.js vue-router

6
推荐指数
1
解决办法
7561
查看次数

标签 统计

vue-router ×1

vue.js ×1