Category - Umi

2019-11-14 07:46:46    7    0    0
> https://github.com/sorrycc/blog/issues/62 > https://www.codercto.com/a/25627.html > https://www.colabug.com/2585865.html > https://www.colabug.com/4410430.html > https://blog.csdn.net/SCU_Cindy/art
2019-11-14 07:46:46    6    0    0
> 参考: https://blog.csdn.net/night_emperor/article/details/82354948 ## 栗子 > 参考: http://mockjs.com/examples.html
2019-11-14 07:46:46    29    0    0
> ### umi路由 > https://umijs.org/zh/guide/router.html#_404-%E8%B7%AF%E7%94%B1 *** > ### umi路由 > https://umijs.org/zh/guide/router.html#_404-%E8%B7%AF%E7%94%B1 > https://blog.csdn.net/eunice_sytin/art
2019-11-14 07:46:46    19    0    0
*** ### umi生成新页面, 使用oni-cli插件, 可以一键生成(models, services, components, index.js, index.less) > $ npm i -g oni-cli > $ oni g page 页面名字 *** ### umi设置 alias(自定义目录的变量代替) ```js import { resolve }
2019-11-14 07:46:46    17    0    0
### 在`tsconfig.json`里写入下面内容: ``` { "compilerOptions": { "outDir": "build/dist", "module": "esnext", "target": "esnext", "lib": [ "esnext",
2019-11-14 07:46:46    159    0    0
### 在 `tsconfig.json` 里写入下面内容: ``` { "rules": { // TS特性 "member-access": true, // 设置成员对象的访问权限(public,private,protect) "member-ordering": [// 设置修饰符顺序 true, { "order":