Code Monkey home page Code Monkey logo

admin-vue3-micro-qiankun's Introduction

admin-vue3-micro-qiankun

admin-vue3-micro-qiankun是一个微前端后台解决方案,它基于 Qiankun.js 结合 admin-element-vueadmin-antd-vue实现。

Demo

main-demo
main-antd-demo
Home

使用文档

后台前端解决方案列表

前台前端SSR解决方案列表

功能

- 登录 / 注销 / 注册

- 权限验证
  - 页面权限
  - 按钮操作
  - 权限配置

- 全局功能
  - 国际化多语言
  - 黑白主题
  - 动态侧边栏(支持多级路由嵌套)
  - 动态面包屑(支持自定义配置)
  - tabNav
  - Svg Sprite 图标
  - Mock 数据
  - 权限验证

- 综合实例
  - 引导页
  - main主框架(基于admin-element-vue调整)
  - main-antd主框架(基于admin-antd-vue调整)
  - System子项目(基于admin-element-vue调整)
  - Article子项目(基于admin-element-vue调整)
  - Links子项目 (基于admin-antd-vue调整)

项目设置

一、Install dependencies,

$ pnpm install

请使用 pnpm , pnpm的安装与使用

二、Compiles and hot-reloads for development

$ pnpm run serve

# or

$ pnpm run serve:main
$ pnpm run serve:article

三、构建与发布

1、构建:

pnpm run build

2、上传到服务器,以nginx配置为例:

# env文件中 MICRO_PUBLIC_PATH=/ 时:
server {
  listen       8080;
  server_name  localhost;

  location / {
    # root   html;
    # index  index.html index.htm;
    try_files $uri $uri/ /index.html;
  }

  location /child/system {
    # root   html;
    # index  index.html index.htm;
    try_files $uri $uri/ /child/system/index.html;
  }
  # article 和 links 等其他子模块的history 配置同上
}
# env文件中 MICRO_PUBLIC_PATH=/admin/ 时:
server {
  listen       8080;
  server_name  localhost;

  location /admin/ {
    # root   html;
    # index  index.html index.htm;
    try_files $uri $uri/ /admin/index.html;
  }

  location /admin/child/system {
    # root   html;
    # index  index.html index.htm;
    try_files $uri $uri/ /admin/child/system/index.html;
  }

  # article 和 links 等其他子模块的history 配置同上 如下:

  location /admin/child/article {
    # root   html;
    # index  index.html index.htm;
    try_files $uri $uri/ /admin/child/article/index.html;
  }

  location /admin/child/links {
    # root   html;
    # index  index.html index.htm;
    try_files $uri $uri/ /admin/child/links/index.html;
  }



}
# env文件中 MICRO_PUBLIC_PATH=/xxxxxx/ 时:
server {
  listen       8080;
  server_name  localhost;

  location /xxxxxx/ {
    # root   html;
    # index  index.html index.htm;
    try_files $uri $uri/ /xxxxxx/index.html;
  }

  location /xxxxxx/child/system {
    # root   html;
    # index  index.html index.htm;
    try_files $uri $uri/ /xxxxxx/child/system/index.html;
  }

  # article 和 links 等其他子模块的history 配置同上 如下:

  location /xxxxxx/child/article {
    # root   html;
    # index  index.html index.htm;
    try_files $uri $uri/ /xxxxxx/child/article/index.html;
  }

  location /xxxxxx/child/links {
    # root   html;
    # index  index.html index.htm;
    try_files $uri $uri/ /xxxxxx/child/links/index.html;
  }



}

运行环境建议

  • Nodejs 14
  • pnpm 6

捐赠

如果你觉得这个项目帮助到了你,请帮助点击 Star,你也可以请作者喝咖啡表示鼓励.

ALIPAY WECHAT
Alipay Wechat

admin-vue3-micro-qiankun's People

Contributors

lqsong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

admin-vue3-micro-qiankun's Issues

外链不做跳转

菜单设置为外链时,统一新页面跳转了,如果想不跳转,程序内嵌入如何做?

页面刷新

页签切换时,希望页面不刷新,如何实现?

版本太老了,很难启动

1.版本太老,启动问题太多,基本启动不了
2.每个项目的name都一样启动出问题
3.如果主项目部署一台服务器,子项目部署到另外的服务器怎么处理,umi-qiankun-micro-fe-admin 什么时间可以改成这种格式,带nginx的

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.