Comments (1)
这个是因为登录授权的原因,在本地开发时,独立运行子工程开发,你可以把store中的CurrentUser配置上,就可以了。
比如:子工程article中,把src/store/user.ts
中的currentUser
配置完整:
const initState: StateType = {
currentUser: {
id: 1,
name: 'admin',
avatar: '',
roles: ['admin'],
},
}
from admin-vue3-micro-qiankun.
Related Issues (11)
- 切换到子应用后,退出并重新登录,显示空页面 HOT 2
- 主框架、子項目採用 admin-element-vue vite 版本的可行性 HOT 2
- 启动子项目无法直接预览开发 HOT 1
- 请问,可以支持多技术栈吗?子应用受此框架的制约吗? HOT 1
- 首页刷新错误 HOT 1
- error in pnpm run serve HOT 1
- 页面刷新 HOT 3
- 外链不做跳转 HOT 1
- 启动项目报错,是缺少文件吗 HOT 4
- 版本太老了,很难启动 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from admin-vue3-micro-qiankun.