GithubHelp home page GithubHelp logo

davidmr001 / x-boot-front Goto Github PK

View Code? Open in Web Editor NEW

This project forked from exrick/xboot-front

0.0 1.0 0.0 3.94 MB

基于Vue+iView开发的x-boot前台 权限可控制至按钮 动态路由权限菜单/多语言/简洁美观

Home Page: http://xboot.exrick.cn

JavaScript 18.77% HTML 0.43% Vue 69.21% CSS 11.59%

x-boot-front's Introduction

x-boot-front

作者目前大四 且为后台开发 能力经验有限 如有错误欢迎指正 期待您的捐赠支持!

宣传视频

在线Demo

http://xboot.exrick.cn

后台项目地址:X-Boot

项目简介

  • 项目基于 Vue-Cli 创建
  • 后台加载动态权限菜单 权限控制至按钮
  • 多语言切换
  • iView使用图标库 ionicons 额外图标库 vue-awesome

主要所用技术

本地开发构建运行

  • 启动后端 x-boot 项目后,在 config/index.js 中修改你的后端接口地址代理配置
  • 在项目根文件夹下先后执行命令 npm installnpm run dev
  • 前台端口默认9999 http://localhost:9999

部署

  • 先后执行命令 npm installnpm run build 将打包生成的 dist 静态文件放置服务器中,并配置路由代理

开发指南

  • 组件使用详见iView官网文档
  • 权限按钮或其他内容显示控制自定义标签:v-has,使用示例:
    <Button v-has="'add'">添加按钮</Button>
    <Button v-has="'edit'">编辑按钮</Button>
    <Button v-has="'delete'">删除按钮</Button>
    <div v-has="'view'">需要view权限的界面内容</div>
    
    render: (h, params) => {
        if(this.$route.meta.permTypes.includes("edit")){
            return ... ...
        }else{
            return ... ...
        }
    }
    

学习记录(更新中)

1.axios请求封装 统一异常处理

2.路由菜单加载

3.控制权限至按钮显示

作者其他项目推荐

技术疑问交流

捐赠

x-boot-front's People

Contributors

exrick avatar

Watchers

 avatar

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.