Skip to content

Commit

Permalink
fix(config): 修复 h5 端 designWith 函数 input 参数结构与小程序不一致导致的编译失败
Browse files Browse the repository at this point in the history
  • Loading branch information
lexmin0412 committed Jul 1, 2024
1 parent 283bc43 commit ff8c3b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const config = {
projectName: 'taro3-react-template',
date: '2021-12-10',
designWidth(input) {
// nutui 组件库需要特殊处理
if (input?.file.replace(/\\+/g, '/').indexOf('@nutui/nutui-react-taro') > -1) {
// nutui 组件库特殊处理
if (input?.file && input.file.replace(/\\+/g, '/').indexOf('@nutui/nutui-react-taro') > -1) {
return 375
}
return 750
Expand Down

0 comments on commit ff8c3b4

Please sign in to comment.