Showing
2 changed files
with
1 additions
and
8 deletions
@@ -151,7 +151,7 @@ | @@ -151,7 +151,7 @@ | ||
151 | isView: { type: Boolean, default: false }, | 151 | isView: { type: Boolean, default: false }, |
152 | }); | 152 | }); |
153 | 153 | ||
154 | - const { validateContentError, validateContentLengthError } = useHooks(); | 154 | + const { validateContentError } = useHooks(); |
155 | 155 | ||
156 | const scriptForm = reactive({ | 156 | const scriptForm = reactive({ |
157 | name: '', | 157 | name: '', |
@@ -262,7 +262,6 @@ | @@ -262,7 +262,6 @@ | ||
262 | } | 262 | } |
263 | if (!value) return; | 263 | if (!value) return; |
264 | if (scriptForm.params) removeTrim(true, scriptForm.params); | 264 | if (scriptForm.params) removeTrim(true, scriptForm.params); |
265 | - if (scriptForm.convertJs.length > 1000) return validateContentLengthError(); | ||
266 | return { | 265 | return { |
267 | ...value, | 266 | ...value, |
268 | ...{ convertJs: props.isNotTest ? scriptForm.convertJs : null }, | 267 | ...{ convertJs: props.isNotTest ? scriptForm.convertJs : null }, |
@@ -20,11 +20,6 @@ export const useHooks = () => { | @@ -20,11 +20,6 @@ export const useHooks = () => { | ||
20 | throw '请编写脚本内容'; | 20 | throw '请编写脚本内容'; |
21 | }; | 21 | }; |
22 | 22 | ||
23 | - const validateContentLengthError = () => { | ||
24 | - createMessage.error('请编写脚本内容'); | ||
25 | - throw '请编写脚本内容'; | ||
26 | - }; | ||
27 | - | ||
28 | //Modal弹窗属性 | 23 | //Modal弹窗属性 |
29 | const setPropsForModal = (text) => { | 24 | const setPropsForModal = (text) => { |
30 | return { | 25 | return { |
@@ -39,7 +34,6 @@ export const useHooks = () => { | @@ -39,7 +34,6 @@ export const useHooks = () => { | ||
39 | getModalButtonText, | 34 | getModalButtonText, |
40 | businessTextIsTest, | 35 | businessTextIsTest, |
41 | validateContentError, | 36 | validateContentError, |
42 | - validateContentLengthError, | ||
43 | setPropsForModal, | 37 | setPropsForModal, |
44 | }; | 38 | }; |
45 | }; | 39 | }; |