Commit acd13dfd authored by TZW's avatar TZW

202314

parent fa3919f2
......@@ -86,4 +86,14 @@ export default defineConfig({
projectName: 'swagger',
},
],
chainWebpack: function (config, { webpack }) {
console.log(process.env.NODE_ENV);
// 线上环境就去除console输出
process.env.NODE_ENV === 'production' &&
config.optimization.minimizer('terser').tap((args) => {
args[0].terserOptions.compress.drop_console = true;
args[0].terserOptions.compress.drop_debugger = true;
return args;
});
},
});
......@@ -15,7 +15,7 @@ export default (props) => {
let { childposition } = props;
childposition = childposition ?? 'left';
const actionbtn = {
add: <PremButton {...props?.addconfig}>新增</PremButton>,
add: <PremButton {...props?.addconfig}>{props?.addconfig?.name || '新增'}</PremButton>,
export: (
<PremButton
{...props?.exportconfig}
......
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-22 15:18:07
* @Last Modified time: 2023-01-04 10:29:44
*/
import * as React from 'react';
......@@ -196,6 +196,7 @@ function Failure(props) {
resizeable={false}
addconfig={{
// access: 'sysDepartment_save',
name: '设备报修',
btn: {
disabled: false,
type: 'primary',
......@@ -204,7 +205,7 @@ function Failure(props) {
...s,
open: true,
item: { isShutdown: 1 },
title: '新增',
title: '设备报修',
val: 'only',
type: 'add',
}));
......
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-13 16:22:18
* @Last Modified time: 2023-01-04 10:31:19
*/
import * as React from 'react';
......@@ -523,6 +523,7 @@ function Failure(props) {
resizeable={false}
addconfig={{
// access: 'sysDepartment_save',
name: '新建外协工单',
btn: {
disabled: false,
type: 'primary',
......
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-12-02 11:41:03
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-22 17:34:32
* @Last Modified time: 2023-01-04 10:30:44
*/
import * as React from 'react';
......@@ -629,6 +629,7 @@ function Failure(props) {
resizeable={false}
addconfig={{
// access: 'sysDepartment_save',
name: '新建追踪工单',
btn: {
disabled: false,
type: 'primary',
......
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