Skip to content

umi4,qiankun没有导出useModel #8416

Answered by fz6m
luanwulin asked this question in Q&A
Discussion options

You must be logged in to vote

使用 useModel 要使用 @umijs/max 或者加载 model 插件:

  pnpm add @umijs/plugins
// .umirc.ts

export default {
  plugins: [
    '@umijs/plugins/dist/model'
  ],
  model: {}
};

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@luanwulin
Comment options

@nopapername
Comment options

Answer selected by luanwulin
Comment options

You must be logged in to vote
2 replies
@lbyupup
Comment options

@WaterHong
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants