Commit c0f7ff61 by 无尘

fix: 修改选择管理员

parent 8b6fe548
.bind-store-body[data-v-7ce58aba]{width:331px;padding:10px;margin:0 auto;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-7ce58aba]{width:215px}.bind-store-body .w-115[data-v-7ce58aba]{width:115px}.bind-store-body .select-tree-wrap[data-v-7ce58aba]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-7ce58aba]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-7ce58aba]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.bind-store-body .select-tree-wrap .el-select-dropdown__wrap[data-v-7ce58aba]{max-height:343px}.bind-store-body .select-tree-wrap .el-checkbox-group[data-v-7ce58aba]{overflow-x:auto;max-height:306px}.bind-store-body .select-tree-wrap .el-checkbox-group ul[data-v-7ce58aba]{height:100%}.bind-store-body .select-tree-wrap .el-checkbox-group ul li[data-v-7ce58aba]{overflow:unset;text-overflow:unset}.bind-store-body[data-v-7071110a]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-7071110a]{width:215px}.bind-store-body .w-115[data-v-7071110a]{width:115px}.bind-store-body .select-tree-wrap[data-v-7071110a]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-7071110a]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-7071110a]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.daily-store-select[data-v-1f8586f8]{position:relative;width:331px;min-height:398px;margin:20px 0 0 0;padding:10px;border:1px solid #e4e7ed}.daily-store-select .define-search-select .el-select-dropdown__wrap[data-v-1f8586f8]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-1f8586f8]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-1f8586f8]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-1f8586f8]{overflow:unset;text-overflow:unset}.store-auth-range[data-v-b34621e2]{display:block;-webkit-transition:all .3s;transition:all .3s}.store-auth-range.show-range .common-mask[data-v-b34621e2],.store-auth-range.show-range[data-v-b34621e2]{display:block}.store-auth-range.show-range .bind-body[data-v-b34621e2]{right:0}.store-auth-range.hide-range .common-mask[data-v-b34621e2]{display:none;opacity:0}.store-auth-range.hide-range .bind-body[data-v-b34621e2]{right:-620px}.common-mask[data-v-b34621e2]{left:0;opacity:.5;background:#000;z-index:1000}.bind-body[data-v-b34621e2],.common-mask[data-v-b34621e2]{position:fixed;top:0;bottom:0;right:0;-webkit-transition:all .3s;transition:all .3s}.bind-body[data-v-b34621e2]{width:604px;padding:20px;z-index:5000;overflow-y:auto;background:#fff}.my-customer-wrap[data-v-6a673ce6]{height:100%}.my-customer-wrap .navwrap[data-v-6a673ce6]{padding-left:0;background:#f0f2f5}.my-customer-wrap .apps-content-right[data-v-6a673ce6]{width:100%;padding:20px}.my-customer-wrap .apps-content-right .admin-list-wrap .add-admin-btn[data-v-6a673ce6]{width:114px;height:32px;line-height:32px;text-align:center;border:1px solid #e4e7ed}.my-customer-wrap .apps-content-right .store-item-content[data-v-6a673ce6]{position:relative;display:inline-block;vertical-align:middle;width:302px;height:32px;line-height:32px;overflow:hidden;white-space:nowrap;border-radius:2px;border:1px solid #c4c6cf;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.my-customer-wrap .apps-content-right .store-item-content.admin-select[data-v-6a673ce6]{border:none}.my-customer-wrap .apps-content-right .store-item-content .el-select__tags[data-v-6a673ce6]{max-width:348px;white-space:nowrap;overflow:hidden} .bind-store-body[data-v-68845ea0]{width:331px;padding:10px;margin:0 auto;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-68845ea0]{width:215px}.bind-store-body .w-115[data-v-68845ea0]{width:115px}.bind-store-body .select-tree-wrap[data-v-68845ea0]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-68845ea0]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-68845ea0]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.bind-store-body .select-tree-wrap .el-select-dropdown__wrap[data-v-68845ea0]{max-height:343px}.bind-store-body .select-tree-wrap .el-checkbox-group[data-v-68845ea0]{overflow-x:auto;max-height:306px}.bind-store-body .select-tree-wrap .el-checkbox-group ul[data-v-68845ea0]{height:100%}.bind-store-body .select-tree-wrap .el-checkbox-group ul li[data-v-68845ea0]{overflow:unset;text-overflow:unset}.bind-store-body[data-v-7071110a]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-7071110a]{width:215px}.bind-store-body .w-115[data-v-7071110a]{width:115px}.bind-store-body .select-tree-wrap[data-v-7071110a]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-7071110a]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-7071110a]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.daily-store-select[data-v-1f8586f8]{position:relative;width:331px;min-height:398px;margin:20px 0 0 0;padding:10px;border:1px solid #e4e7ed}.daily-store-select .define-search-select .el-select-dropdown__wrap[data-v-1f8586f8]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-1f8586f8]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-1f8586f8]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-1f8586f8]{overflow:unset;text-overflow:unset}.store-auth-range[data-v-b34621e2]{display:block;-webkit-transition:all .3s;transition:all .3s}.store-auth-range.show-range .common-mask[data-v-b34621e2],.store-auth-range.show-range[data-v-b34621e2]{display:block}.store-auth-range.show-range .bind-body[data-v-b34621e2]{right:0}.store-auth-range.hide-range .common-mask[data-v-b34621e2]{display:none;opacity:0}.store-auth-range.hide-range .bind-body[data-v-b34621e2]{right:-620px}.common-mask[data-v-b34621e2]{left:0;opacity:.5;background:#000;z-index:1000}.bind-body[data-v-b34621e2],.common-mask[data-v-b34621e2]{position:fixed;top:0;bottom:0;right:0;-webkit-transition:all .3s;transition:all .3s}.bind-body[data-v-b34621e2]{width:604px;padding:20px;z-index:5000;overflow-y:auto;background:#fff}.my-customer-wrap[data-v-6a673ce6]{height:100%}.my-customer-wrap .navwrap[data-v-6a673ce6]{padding-left:0;background:#f0f2f5}.my-customer-wrap .apps-content-right[data-v-6a673ce6]{width:100%;padding:20px}.my-customer-wrap .apps-content-right .admin-list-wrap .add-admin-btn[data-v-6a673ce6]{width:114px;height:32px;line-height:32px;text-align:center;border:1px solid #e4e7ed}.my-customer-wrap .apps-content-right .store-item-content[data-v-6a673ce6]{position:relative;display:inline-block;vertical-align:middle;width:302px;height:32px;line-height:32px;overflow:hidden;white-space:nowrap;border-radius:2px;border:1px solid #c4c6cf;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.my-customer-wrap .apps-content-right .store-item-content.admin-select[data-v-6a673ce6]{border:none}.my-customer-wrap .apps-content-right .store-item-content .el-select__tags[data-v-6a673ce6]{max-width:348px;white-space:nowrap;overflow:hidden}
\ No newline at end of file \ No newline at end of file
<!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.44.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-0242a426.ac116cab.css rel=prefetch><link href=css/chunk-0e261f8e.43d31ae2.css rel=prefetch><link href=css/chunk-179a3874.dc84d9e8.css rel=prefetch><link href=css/chunk-22274e8e.060dcf46.css rel=prefetch><link href=css/chunk-2308777a.77b3a9c1.css rel=prefetch><link href=css/chunk-286e5feb.f909098e.css rel=prefetch><link href=css/chunk-2966b566.cb15c587.css rel=prefetch><link href=css/chunk-33fdfb11.68aa2400.css rel=prefetch><link href=css/chunk-3feed9c7.9c429f6a.css rel=prefetch><link href=css/chunk-455ce796.b1d8aa7b.css rel=prefetch><link href=css/chunk-48391fe3.4aa421f5.css rel=prefetch><link href=css/chunk-4b3bcf32.866e420f.css rel=prefetch><link href=css/chunk-4badec06.03bda020.css rel=prefetch><link href=css/chunk-55339910.943c31ad.css rel=prefetch><link href=css/chunk-55cc2c59.c7e70006.css rel=prefetch><link href=css/chunk-5f5b6428.25690855.css rel=prefetch><link href=css/chunk-60db2d5e.8657539c.css rel=prefetch><link href=css/chunk-63077e53.30f8c618.css rel=prefetch><link href=css/chunk-6fb5055b.ccd0d92d.css rel=prefetch><link href=css/chunk-71d9e72b.d52f2c12.css rel=prefetch><link href=css/chunk-79b0d838.eee69b00.css rel=prefetch><link href=css/chunk-7ebef5b3.eedd98c6.css rel=prefetch><link href=css/chunk-872ed9ae.1bff2b51.css rel=prefetch><link href=css/chunk-a01687d6.7d03d591.css rel=prefetch><link href=css/chunk-ab6d529c.a005521a.css rel=prefetch><link href=css/chunk-eaa74a32.0c73c4d7.css rel=prefetch><link href=css/chunk-f2cea2de.8570a767.css rel=prefetch><link href=css/chunk-fcf99900.77b98ef5.css rel=prefetch><link href=js/chunk-0242a426.b988c32a.js rel=prefetch><link href=js/chunk-0e261f8e.3423cbbd.js rel=prefetch><link href=js/chunk-179a3874.759cb20d.js rel=prefetch><link href=js/chunk-22274e8e.70e639ee.js rel=prefetch><link href=js/chunk-2308777a.03a2790d.js rel=prefetch><link href=js/chunk-286e5feb.bb070c15.js rel=prefetch><link href=js/chunk-2966b566.b18fffe4.js rel=prefetch><link href=js/chunk-33fdfb11.5b5a96d0.js rel=prefetch><link href=js/chunk-3feed9c7.f1e388ea.js rel=prefetch><link href=js/chunk-455ce796.0e765e22.js rel=prefetch><link href=js/chunk-48391fe3.9bbfca3d.js rel=prefetch><link href=js/chunk-4b3bcf32.b2ff1a0d.js rel=prefetch><link href=js/chunk-4badec06.b776832f.js rel=prefetch><link href=js/chunk-55339910.7fe2ced0.js rel=prefetch><link href=js/chunk-55cc2c59.707a2891.js rel=prefetch><link href=js/chunk-5f5b6428.4c60cdfc.js rel=prefetch><link href=js/chunk-60db2d5e.e34c00d7.js rel=prefetch><link href=js/chunk-63077e53.f4ad7b21.js rel=prefetch><link href=js/chunk-6fb5055b.d46de816.js rel=prefetch><link href=js/chunk-71d9e72b.6c820ba8.js rel=prefetch><link href=js/chunk-79b0d838.f2f0b7d5.js rel=prefetch><link href=js/chunk-7ebef5b3.1aee1940.js rel=prefetch><link href=js/chunk-872ed9ae.eb64afa4.js rel=prefetch><link href=js/chunk-a01687d6.10e3d16e.js rel=prefetch><link href=js/chunk-ab6d529c.f6d19047.js rel=prefetch><link href=js/chunk-eaa74a32.164b5c17.js rel=prefetch><link href=js/chunk-f2cea2de.f6435ef6.js rel=prefetch><link href=js/chunk-fcf99900.77c291c5.js rel=prefetch><link href=css/app.dc6afa5f.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.e32098b6.js rel=preload as=script><link href=js/chunk-vendors.4646af85.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.dc6afa5f.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.0.js></script><script src=js/chunk-vendors.4646af85.js></script><script src=js/app.e32098b6.js></script></body></html> <!DOCTYPE html><html lang=cn><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.44.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><title>好办</title><link href=css/chunk-0242a426.ac116cab.css rel=prefetch><link href=css/chunk-0e261f8e.43d31ae2.css rel=prefetch><link href=css/chunk-22274e8e.060dcf46.css rel=prefetch><link href=css/chunk-2308777a.77b3a9c1.css rel=prefetch><link href=css/chunk-286e5feb.f909098e.css rel=prefetch><link href=css/chunk-2966b566.cb15c587.css rel=prefetch><link href=css/chunk-33fdfb11.68aa2400.css rel=prefetch><link href=css/chunk-3feed9c7.9c429f6a.css rel=prefetch><link href=css/chunk-455ce796.b1d8aa7b.css rel=prefetch><link href=css/chunk-48391fe3.4aa421f5.css rel=prefetch><link href=css/chunk-4b3bcf32.866e420f.css rel=prefetch><link href=css/chunk-4badec06.03bda020.css rel=prefetch><link href=css/chunk-55339910.943c31ad.css rel=prefetch><link href=css/chunk-55cc2c59.c7e70006.css rel=prefetch><link href=css/chunk-5f5b6428.25690855.css rel=prefetch><link href=css/chunk-60db2d5e.8657539c.css rel=prefetch><link href=css/chunk-63077e53.30f8c618.css rel=prefetch><link href=css/chunk-6c2eda07.895238e0.css rel=prefetch><link href=css/chunk-6fb5055b.ccd0d92d.css rel=prefetch><link href=css/chunk-71d9e72b.d52f2c12.css rel=prefetch><link href=css/chunk-79b0d838.eee69b00.css rel=prefetch><link href=css/chunk-7ebef5b3.eedd98c6.css rel=prefetch><link href=css/chunk-872ed9ae.1bff2b51.css rel=prefetch><link href=css/chunk-a01687d6.7d03d591.css rel=prefetch><link href=css/chunk-ab6d529c.a005521a.css rel=prefetch><link href=css/chunk-eaa74a32.0c73c4d7.css rel=prefetch><link href=css/chunk-f2cea2de.8570a767.css rel=prefetch><link href=css/chunk-fcf99900.77b98ef5.css rel=prefetch><link href=js/chunk-0242a426.ae07c758.js rel=prefetch><link href=js/chunk-0e261f8e.afea68bc.js rel=prefetch><link href=js/chunk-22274e8e.15736c32.js rel=prefetch><link href=js/chunk-2308777a.8d1a528e.js rel=prefetch><link href=js/chunk-286e5feb.64db64a0.js rel=prefetch><link href=js/chunk-2966b566.b6b16bb3.js rel=prefetch><link href=js/chunk-33fdfb11.d73cc037.js rel=prefetch><link href=js/chunk-3feed9c7.6734b2de.js rel=prefetch><link href=js/chunk-455ce796.c004c241.js rel=prefetch><link href=js/chunk-48391fe3.2ed40ff7.js rel=prefetch><link href=js/chunk-4b3bcf32.576556bc.js rel=prefetch><link href=js/chunk-4badec06.1aa2db84.js rel=prefetch><link href=js/chunk-55339910.b3966479.js rel=prefetch><link href=js/chunk-55cc2c59.92b2c7d3.js rel=prefetch><link href=js/chunk-5f5b6428.575cacb3.js rel=prefetch><link href=js/chunk-60db2d5e.3cc2f1b0.js rel=prefetch><link href=js/chunk-63077e53.47b600a7.js rel=prefetch><link href=js/chunk-6c2eda07.93abc754.js rel=prefetch><link href=js/chunk-6fb5055b.841a0818.js rel=prefetch><link href=js/chunk-71d9e72b.f6cbfc57.js rel=prefetch><link href=js/chunk-79b0d838.9805521d.js rel=prefetch><link href=js/chunk-7ebef5b3.d59e6025.js rel=prefetch><link href=js/chunk-872ed9ae.6c413584.js rel=prefetch><link href=js/chunk-a01687d6.7c4597bf.js rel=prefetch><link href=js/chunk-ab6d529c.d75df545.js rel=prefetch><link href=js/chunk-eaa74a32.b68843ab.js rel=prefetch><link href=js/chunk-f2cea2de.7a62d87e.js rel=prefetch><link href=js/chunk-fcf99900.a9437183.js rel=prefetch><link href=css/app.dc6afa5f.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.b697a89c.js rel=preload as=script><link href=js/chunk-vendors.4dbffdb2.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.dc6afa5f.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.0.js></script><script src=js/chunk-vendors.4dbffdb2.js></script><script src=js/app.b697a89c.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-21 10:10:57 * @Date: 2020-07-21 10:10:57
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-08-17 11:27:07 * @LastEditTime: 2020-08-17 11:32:28
--> -->
<!-- <!--
选择管理员 选择管理员
...@@ -98,6 +98,7 @@ export default { ...@@ -98,6 +98,7 @@ export default {
*/ */
async changeItem(val, item) { async changeItem(val, item) {
const that = this; const that = this;
console.log('tree:',val, item,that.checkedList)
// 如果不勾选了,需要设置搜索数据中已选删除 // 如果不勾选了,需要设置搜索数据中已选删除
if (!val && that.checkedList.indexOf(item.levelId)) { if (!val && that.checkedList.indexOf(item.levelId)) {
that.checkedList.splice(that.checkedList.indexOf(item.levelId), 1); that.checkedList.splice(that.checkedList.indexOf(item.levelId), 1);
...@@ -105,10 +106,12 @@ export default { ...@@ -105,10 +106,12 @@ export default {
// 需要先获取已选人员(有些问题,获取的时候数据没有) // 需要先获取已选人员(有些问题,获取的时候数据没有)
that.checkedPeople = []; that.checkedPeople = [];
await that.getCheckData(); await that.getCheckData();
console.log('checkedPeople:',that.checkedPeople)
// 每次选择或者不选的时候,合并搜索和树中选择数据,即使如果不选中,数据已经加载了, // 每次选择或者不选的时候,合并搜索和树中选择数据,即使如果不选中,数据已经加载了,
that.totalIds = [...new Set([...that.checkedList],[...that.checkedPeople.map(ele => ele.levelId)])] || []; that.totalIds = [...new Set([...that.checkedList],[...that.checkedPeople.map(ele => ele.levelId)])] || [];
that.checkedList = [...new Set([...that.checkedList],[...that.checkedPeople.map(ele => ele.levelId)])] || []; that.checkedList = [...new Set([...that.checkedList],[...that.checkedPeople.map(ele => ele.levelId)])] || [];
that.totalNum = that.totalIds.length; that.totalNum = that.totalIds.length;
console.log(that.checkedList)
}, },
/** /**
* 关闭弹窗 * 关闭弹窗
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-16 16:37:05 * @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-07-28 15:48:16 * @LastEditTime: 2020-08-17 11:32:45
*/ */
const path = require("path"); const path = require("path");
...@@ -51,11 +51,11 @@ module.exports = { ...@@ -51,11 +51,11 @@ module.exports = {
config.entry.app = ["babel-polyfill", "./src/main.js"]; config.entry.app = ["babel-polyfill", "./src/main.js"];
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
config.optimization.minimizer[0].options.terserOptions.compress.warnings = false; config.optimization.minimizer[0].options.terserOptions.compress.warnings = false;
config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true; //config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true;
config.optimization.minimizer[0].options.terserOptions.compress.drop_debugger = true; config.optimization.minimizer[0].options.terserOptions.compress.drop_debugger = true;
config.optimization.minimizer[0].options.terserOptions.compress.pure_funcs = [ /* config.optimization.minimizer[0].options.terserOptions.compress.pure_funcs = [
'console.log' 'console.log'
]; ]; */
} }
}, },
chainWebpack: config => { chainWebpack: config => {
......
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