vue-vben-admin icon indicating copy to clipboard operation
vue-vben-admin copied to clipboard

Fix/inappropriate code in src/utils/env.ts

Open Jane0220 opened this issue 3 years ago • 0 comments

General

✏️ Mark the necessary items without changing the structure of the PR template.

  • [ x ] Pull request template structure not broken

Type

ℹ️ What types of changes does your code introduce?

👉 Put an x in the boxes that apply

  • [ x ] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] This change requires a documentation update

Checklist

ℹ️ Check all checkboxes - this will indicate that you have done everything in accordance with the rules in CONTRIBUTING.

👉 Put an x in the boxes that apply.

  • [ x ] My code follows the style guidelines of this project
  • [ x ] Is the code format correct
  • [ x ] Is the git submission information standard?
  • [ x ] My code follows the style guidelines of this project
  • [ x ] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ x ] My changes generate no new warnings
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] New and existing unit tests pass locally with my changes
  • [ ] Any dependent changes have been merged and published in downstream modules

微信截图_20220809111616

原代码src/utils/env.ts里的2个写法,打包出来会有多余额外的未使用字段,对此进行了优化

Jane0220 avatar Aug 09 '22 03:08 Jane0220