eli-video-interview 1.2.31 → 1.2.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -105,7 +105,7 @@ var AbilityFormItem = function (_a) {
105
105
  setMode(mode);
106
106
  }, [mode]);
107
107
  useEffect(function () {
108
- var resItems = content.split('\n');
108
+ var resItems = [4, 5].includes(type) ? content.split('\n') : [content];
109
109
  onChange === null || onChange === void 0 ? void 0 : onChange({
110
110
  name: title,
111
111
  type: type,
@@ -107,7 +107,7 @@ var AbilityFormItem = function (_a) {
107
107
  setMode(mode);
108
108
  }, [mode]);
109
109
  (0, react_1.useEffect)(function () {
110
- var resItems = content.split('\n');
110
+ var resItems = [4, 5].includes(type) ? content.split('\n') : [content];
111
111
  onChange === null || onChange === void 0 ? void 0 : onChange({
112
112
  name: title,
113
113
  type: type,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eli-video-interview",
3
- "version": "1.2.31",
3
+ "version": "1.2.32",
4
4
  "description": "鳄梨科技 AI视频面试 React SDK",
5
5
  "author": "鳄梨科技",
6
6
  "license": "MIT",