Coder Social home page Coder Social logo

Comments (1)

cloudhao1999 avatar cloudhao1999 commented on August 15, 2024

谢谢对本项目的支持,年代比较久远了,我翻出来看了看,如果你有下载本项目的话可以跑起来将 guard.ts 中 31 行关于 autoload 的代码注释掉,然后尝试在 权限页面 进行权限切换,当你将权限切换成 editor 后,你会发现本应该消失的 额外权限 菜单仍旧出现在页面中,所以 autoLoad 方法会被调用两次的原因正如你所言是为了使路由元数据能够匹配当前的角色,为什么不在 autoload 中判断呢,主要是为了方法的功能单一,所以将其放在路由守卫的逻辑中,至于您所说的重复数据我这边确实有发现,不过 router 似乎并不会展示重复的数据,页面上没有重复的菜单项,再次感谢你的支持,这个项目是我在学习 Vue3 期间的一个练习作品,我也不是啥大佬哈,如果您对于路由自动装载有更好的建议可以继续交流学习,也可以给我的项目提 pr,再次感谢 😆

from cloud-app-admin.

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.