Skip to content

Commit 3e12a7a

Browse files
committed
替换lodash-es
1 parent ff87260 commit 3e12a7a

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
"axios": "^0.21.1",
1414
"core-js": "^3.6.5",
1515
"element-plus": "^1.0.2-beta.31",
16+
"lodash-es": "^4.17.20",
1617
"nprogress": "^0.2.0",
1718
"vue": "3.0.5",
1819
"vue-router": "4.0.3",
1920
"vuex": "4.0.0-rc.2"
2021
},
2122
"devDependencies": {
22-
"@types/lodash": "^4.14.168",
23+
"@types/lodash-es": "^4.17.4",
2324
"@types/mockjs": "^1.0.3",
2425
"@types/nprogress": "^0.2.0",
2526
"@vue/cli-plugin-babel": "~4.5.0",

postcss.config.js

-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/*
2-
* @Description:
3-
* @Autor: xiukun@herry
4-
* @Date: 2021-02-08 15:21:58
5-
* @LastEditors: xiukun@herry
6-
* @LastEditTime: 2021-02-08 15:38:59
7-
*/
81
module.exports = {
92
plugins: [require('tailwindcss')(), require('autoprefixer')()],
103
};

src/components/login/RegisterForm.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @Autor: xiukun@herry
44
* @Date: 2021-02-03 16:48:56
55
* @LastEditors: xiukun@herry
6-
* @LastEditTime: 2021-02-05 18:24:53
6+
* @LastEditTime: 2021-02-20 18:44:48
77
-->
88
<template>
99
<el-form ref="registerForm" :model="registerUser" :rules="registerRules" label-width="100px" class="registerForm sign-up-form">
@@ -38,7 +38,7 @@
3838
import { ref, Ref } from 'vue';
3939
import { validate } from '@/utils/formExtend';
4040
// import axios from 'axios' // 仅限在当前组件使用
41-
import { cloneDeep } from 'lodash';
41+
import { cloneDeep } from 'lodash-es';
4242
export default {
4343
props: {
4444
registerUser: {

yarn.lock

+14-2
Original file line numberDiff line numberDiff line change
@@ -1020,9 +1020,16 @@
10201020
resolved "https://registry.npm.taobao.org/@types/json-schema/download/@types/json-schema-7.0.7.tgz?cache=0&sync_timestamp=1611096164561&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Fjson-schema%2Fdownload%2F%40types%2Fjson-schema-7.0.7.tgz#98a993516c859eb0d5c4c8f098317a9ea68db9ad"
10211021
integrity sha1-mKmTUWyFnrDVxMjwmDF6nqaNua0=
10221022

1023-
"@types/lodash@^4.14.168":
1023+
"@types/lodash-es@^4.17.4":
1024+
version "4.17.4"
1025+
resolved "https://registry.npm.taobao.org/@types/lodash-es/download/@types/lodash-es-4.17.4.tgz#b2e440d2bf8a93584a9fd798452ec497986c9b97"
1026+
integrity sha1-suRA0r+Kk1hKn9eYRS7El5hsm5c=
1027+
dependencies:
1028+
"@types/lodash" "*"
1029+
1030+
"@types/lodash@*":
10241031
version "4.14.168"
1025-
resolved "https://registry.npm.taobao.org/@types/lodash/download/@types/lodash-4.14.168.tgz?cache=0&sync_timestamp=1610980852548&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40types%2Flodash%2Fdownload%2F%40types%2Flodash-4.14.168.tgz#fe24632e79b7ade3f132891afff86caa5e5ce008"
1032+
resolved "https://registry.npm.taobao.org/@types/lodash/download/@types/lodash-4.14.168.tgz#fe24632e79b7ade3f132891afff86caa5e5ce008"
10261033
integrity sha1-/iRjLnm3rePxMoka//hsql5c4Ag=
10271034

10281035
"@types/mime@^1":
@@ -5205,6 +5212,11 @@ locate-path@^5.0.0:
52055212
dependencies:
52065213
p-locate "^4.1.0"
52075214

5215+
lodash-es@^4.17.20:
5216+
version "4.17.20"
5217+
resolved "https://registry.npm.taobao.org/lodash-es/download/lodash-es-4.17.20.tgz?cache=0&sync_timestamp=1608444888079&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Flodash-es%2Fdownload%2Flodash-es-4.17.20.tgz#29f6332eefc60e849f869c264bc71126ad61e8f7"
5218+
integrity sha1-KfYzLu/GDoSfhpwmS8cRJq1h6Pc=
5219+
52085220
lodash.camelcase@^4.3.0:
52095221
version "4.3.0"
52105222
resolved "https://registry.npm.taobao.org/lodash.camelcase/download/lodash.camelcase-4.3.0.tgz#b28aa6288a2b9fc651035c7711f65ab6190331a6"

0 commit comments

Comments
 (0)