wjx hace 2 años
padre
commit
7ab5dece38

+ 1 - 1
src/pages/launchSystemNew/components/previewOrigin/index.tsx

@@ -25,7 +25,7 @@ const PreviewOrigin: React.FC<Props> = (props) => {
             window.open(res)
         })
     }
-    return <Button style={{ fontSize: 12, color: '#1890FF', padding: 0 }} loading={getAdcreativeTemplatePreviews.loading} type='link' onClick={() => handleVisibleChange()}>创意预览</Button>
+    return <Button style={{ fontSize: 12, color: '#1890FF', padding: 0, lineHeight: 'normal', height: 'auto' }} loading={getAdcreativeTemplatePreviews.loading} type='link' onClick={() => handleVisibleChange()}>创意预览</Button>
 }
 
 

+ 1 - 1
src/utils/utils.ts

@@ -149,7 +149,7 @@ export const groupBy = (array: any[], f: (item: any) => any[]) => {
 
 export const replaceSpecialTxt = (text: string | number | null | undefined) => {
   if (text) {
-    return text.toString().replace(/[<>&'"\//\n\s]/ig, '')
+    return text.toString().replace(/[<>]/ig, '')
   } else {
     return text
   }