fjykTec / ModernWMS

The open source simple and complete warehouse management system is derived from our many years of experience in implementing erp projects. We stripped the original commercial system wms function and opened it up for free, hoping to help the majority of small and medium-sized enterprises. At present, the system supports cross-platform。
https://modernwms.ikeyly.com/
Apache License 2.0
821 stars 259 forks source link

前端编译报错 'userName' does not exist in type 'LoginParams'. #3

Closed zh3305 closed 1 year ago

zh3305 commented 1 year ago
E:\ExtensionCode\ModernWMS\frontend>yarn && yarn build
yarn install v1.22.19
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.12s.
yarn run v1.22.19
$ vue-tsc && vite build
src/components/login/loginForm.vue:65:7 - error TS2345: Argument of type '{ userName: string; password: string; }' is not assignable to parameter of type 'LoginParams'.
  Object literal may only specify known properties, but 'userName' does not exist in type 'LoginParams'. Did you mean to write 'user_name'?

65       userName: data.userName,
         ~~~~~~~~~~~~~~~~~~~~~~~

Found 1 error in src/components/login/loginForm.vue:65

error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
ModernWMS commented 1 year ago

在最新版本已经解决