https://github.com/sobird/mtm
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sobird/mtm
- Owner: sobird
- License: mit
- Created: 2021-07-21T03:17:25.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-04-15T12:52:28.000Z (about 1 year ago)
- Last Synced: 2025-01-01T21:34:55.737Z (6 months ago)
- Language: TypeScript
- Homepage: http://mtm.sobird.me
- Size: 79.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.asciidoc
- License: LICENSE
Awesome Lists containing this project
README
# 商家电商管理后台系统
:toc:> 运营模块集合到主工程中来
## @mtm/shared
```
cd packages/shared
yarn linkcd -
yarn link @mtm/shared
```## 全局文本复制
> 已配置全局文本复制功能使用方法如下:
```jsx
// 查找id为foo的元素内容进行复制
foo复制
// 或者
// 直接复制data-clipboard-text设置的文本内容
复制
```
## FAQ
### [qiankun] lifecycle not found from xxx entry exports, fallback to get from window['xxx']
qiankun是通过html中的最后一个script文件,获取qiankun的生命周期,所以如果最后一个不是入口js文件就拿不到生命周期。
可在webpack.config.js文件中修改下面配置修复此问题
```js
const config = {
...
plugins: [
new HtmlPlugin({
...
chunks: [ 'app' ]
}),
]
...
}
```## 数据规则
金钱 单位 元 or 分?
使用 actions/cache@v3 缓存 **/node_modules 目录文件,缩减编译部署时安装依赖所耗费的时间。
* 保证金 - cash deposit