umi-next icon indicating copy to clipboard operation
umi-next copied to clipboard

[BUG] pro layout 运行时配置, `RunTimeLayoutConfig `类型错误

Open aiden-cao opened this issue 2 years ago • 3 comments

https://github.com/umijs/umi-next/blob/master/packages/plugins/src/layout.ts#L202-L218

  • BasicLayoutProps 未导入
  • useModel 文件不存在
  • InitDataType类型错误应为Model<'@@initialState'>

aiden-cao avatar Jun 22 '22 04:06 aiden-cao

第2和第3点应该是没在 umi config 中添加 model: {},initialState: {},

zjfresh avatar Jun 23 '22 02:06 zjfresh

第2和第3点应该是没在 umi config 中添加 model: {},initialState: {}, image image

加了的,这块插件代码应该还不完善

aiden-cao avatar Jun 23 '22 03:06 aiden-cao

新版的将之前的 useModel 移到 index.tsx 中了 image

zjfresh avatar Jun 23 '22 03:06 zjfresh