create-umi 4.0.52 → 4.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-umi",
3
- "version": "4.0.52",
3
+ "version": "4.0.53",
4
4
  "description": "create-umi",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/create-umi#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -25,7 +25,7 @@
25
25
  "test": "umi-scripts jest-turbo"
26
26
  },
27
27
  "dependencies": {
28
- "@umijs/utils": "4.0.52"
28
+ "@umijs/utils": "4.0.53"
29
29
  },
30
30
  "publishConfig": {
31
31
  "access": "public"
@@ -1,6 +1,6 @@
1
1
  export default (initialState: API.UserInfo) => {
2
2
  // 在这里按照初始化数据定义项目中的权限,统一管理
3
- // 参考文档 https://next.umijs.org/docs/max/access
3
+ // 参考文档 https://umijs.org/docs/max/access
4
4
  const canSeeAdmin = !!(
5
5
  initialState && initialState.name !== 'dontHaveAccess'
6
6
  );
@@ -1,7 +1,7 @@
1
1
  // 运行时配置
2
2
 
3
3
  // 全局初始化数据配置,用于 Layout 用户信息和权限初始化
4
- // 更多信息见文档:https://next.umijs.org/docs/api/runtime-config#getinitialstate
4
+ // 更多信息见文档:https://umijs.org/docs/api/runtime-config#getinitialstate
5
5
  export async function getInitialState(): Promise<{ name: string }> {
6
6
  return { name: '@umijs/max' };
7
7
  }