microapp 通过链接区分主子应用步骤

1. micro

js 复制代码
{ name: "statistic", url: `http://192.168.110.100:81/project/statistic/` }

2. vue.config.js

主应用

子应用

3. nginx配置

主应用

js 复制代码
  location / {
        root  /home/env/html/saas/base;
	add_header access-control-allow-origin *;
        try_files $uri $uri/ /index.html;
        index  index.html index.htm;
    }

子应用

js 复制代码
 location /project/system {
        alias /home/env/html/saas/portal/; 
	add_header access-control-allow-origin *;
        index index.html index.htm;
        try_files $uri $uri/ /system/index.html;
    }
相关推荐
前端精髓15 小时前
移除 Effect 依赖
前端·javascript·react.js
码云之上15 小时前
从一个截图函数到一个 npm 包——pdf-snapshot 的诞生记
前端·node.js·github
码事漫谈16 小时前
AI提效,到底能强到什么程度?
前端·后端
IT_陈寒16 小时前
React hooks依赖数组这个坑差点把我埋了
前端·人工智能·后端
阿祖zu16 小时前
内容创作 AI 透明化声明倡议与项目开源
前端·后端·github
lpfasd12316 小时前
TypeScript + Cloudflare 全家桶部署项目全流程
前端·javascript·typescript
ZC跨境爬虫17 小时前
极验滑动验证码自动化实战:背景提取、缺口定位与Playwright滑动模拟
前端·爬虫·python·自动化
前端Hardy17 小时前
字节/腾讯内部流出!Claude Code 2026王炸玩法!效率暴涨10倍
前端·javascript·vue.js
糟糕好吃17 小时前
AI 全流程解析(LLM / Token / Context / RAG / Prompt / Tool / Skill / Agent)
前端·后端·设计模式
快手技术17 小时前
快手广告系统全面迈入生成式推荐时代!GR4AD:从Token到Revenue的全链路重构
前端·后端