Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@midcu/vue-auth
Advanced tools
Readme
一个基于vue的前端框架插件,包括权限验证、用户管理、角色管理、菜单管理、权限管理等功能。
依靠vue-auth可以迅速的搭建起一个新的管理系统
npm install -S @midcu/vue-auth element-ui axios
框架依赖vuex作为全局状态管里,vue-router作为路由跳转控制,Axios作为HTTP请求工具,ElementUi作为UI框架
import Axios from 'axios'
import Auth from '@midcu/vue-auth'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI)
const request = Axios.create({
baseURL: '/api',
timeout: 30000
})
Vue.use(Auth, {
router, //vue-router的实例
loader: (name) => import('./views/'+name), // [name].vue页面懒加载的函数
store, // vuex的实例
request,// Axios的实例
{ } // config 插件的配置,覆盖默认配置
})
new Vue({
router,
store,
render: (h) => h("va-main")
}).$mount('#app')
建议使用vue-cli搭建vue项目(ps:运行前清除原有的route地址)。
配置相应的后台地址。
运行项目即可看到管理系统
FAQs
一个基于vue的前端权限框架依赖包,包括菜单用户角色权限管理
The npm package @midcu/vue-auth receives a total of 0 weekly downloads. As such, @midcu/vue-auth popularity was classified as not popular.
We found that @midcu/vue-auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.