Commit 4a6906cb authored by XieZhiXiong's avatar XieZhiXiong
parents 8912827e 62166fe8
...@@ -29,7 +29,7 @@ export default defineConfig({ ...@@ -29,7 +29,7 @@ export default defineConfig({
// 'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/lingxi-design-ui.min.js', // 'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/lingxi-design-ui.min.js',
// ], // ],
chainWebpack(config) { chainWebpack(config) {
config.plugin('antd-dayjs-webpack-plugin').use(AntdDayjsWebpackPlugin) // config.plugin('antd-dayjs-webpack-plugin').use(AntdDayjsWebpackPlugin)
// config.plugin('lodash-webpack-plugin').use(LodashModuleReplacementPlugin) // config.plugin('lodash-webpack-plugin').use(LodashModuleReplacementPlugin)
config.module config.module
.rule('svg') .rule('svg')
......
...@@ -28,7 +28,7 @@ export default defineConfig({ ...@@ -28,7 +28,7 @@ export default defineConfig({
// 'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/lingxi-design-ui.min.js', // 'http://lingxi-frontend-prod.oss-cn-hangzhou.aliyuncs.com/static/js/lingxi-design-ui.min.js',
], ],
chainWebpack(config) { chainWebpack(config) {
config.plugin('antd-dayjs-webpack-plugin').use(AntdDayjsWebpackPlugin) // config.plugin('antd-dayjs-webpack-plugin').use(AntdDayjsWebpackPlugin)
config.plugin('lodash-webpack-plugin').use(LodashModuleReplacementPlugin) config.plugin('lodash-webpack-plugin').use(LodashModuleReplacementPlugin)
// config.merge({ // config.merge({
// optimization: { // optimization: {
......
...@@ -103,7 +103,7 @@ const config: any = { ...@@ -103,7 +103,7 @@ const config: any = {
// chunks: isProduction && ['styles', 'vendors', 'umi', 'services'], // chunks: isProduction && ['styles', 'vendors', 'umi', 'services'],
chainWebpack: function(config, { webpack }) { chainWebpack: function(config, { webpack }) {
// config.plugin('case-sensitive-paths-webpack-plugin').use(CaseSensitivePathsWebpackPlugins) // config.plugin('case-sensitive-paths-webpack-plugin').use(CaseSensitivePathsWebpackPlugins)
config.plugin('antd-dayjs-webpack-plugin').use(AntdDayjsWebpackPlugin) // config.plugin('antd-dayjs-webpack-plugin').use(AntdDayjsWebpackPlugin)
config.plugin('lodash-webpack-plugin').use(LodashModuleReplacementPlugin) config.plugin('lodash-webpack-plugin').use(LodashModuleReplacementPlugin)
config.module config.module
.rule('svg') .rule('svg')
......
...@@ -82,6 +82,7 @@ const ProductListLayout: React.FC<ProductListProps> = (props: any) => { ...@@ -82,6 +82,7 @@ const ProductListLayout: React.FC<ProductListProps> = (props: any) => {
'productList': newData.filter(item => item.skuId !== key) 'productList': newData.filter(item => item.skuId !== key)
}) })
setIdNotInList(idNotInList.filter(item => item !== key)); setIdNotInList(idNotInList.filter(item => item !== key));
setIdNots(idNots.filter(item => item !== key));
setDataSource(newData.filter(item => item.skuId !== key)) setDataSource(newData.filter(item => item.skuId !== key))
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment