We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在 src/layouts/basiclayout.vue里<router-view /> 前添加 <multi-tab v-if="multiTab"></multi-tab> 然后引入组件 import MultiTab from '@/components/MultiTab' components: { SettingDrawer, RightContent, GlobalFooter, MultiTab//ADD it }, .......... computed: { ...mapState({ // 动态主路由 mainMenu: (state) => state.permission.addRouters, multiTab: (state) => state.app.multiTab //ADD it }) }, 然后在 config/defaultSettings.js加入一行 multiTab: true,
//获取原型对象上的push函数 const originalPush = Router.prototype.push //修改原型对象中的push方法 Router.prototype.push = function push(location) { return originalPush.call(this, location).catch(err => err) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
multiTab的配置如下
网上很多博客说添加下面代码可以解决这个问题,我发现项目本身就有下面配置,但是控制台还是抛错
The text was updated successfully, but these errors were encountered: