@zgfe/modules-dm 1.0.2-y.1 → 1.0.2-y.3

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.
@@ -25,8 +25,7 @@ var DataCollection = function DataCollection(props) {
25
25
  isDemo = _useContext.isDemo;
26
26
 
27
27
  var classPrefix = 'data-collection'; // const { updateEventMetas } = props;
28
-
29
- console.log('①埋点方案', currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId, getAppID(currentApp));
28
+ // console.log('①埋点方案', currentApp?.appId, getAppID(currentApp));
30
29
 
31
30
  var _useState = useState(1),
32
31
  _useState2 = _slicedToArray(_useState, 2),
@@ -105,6 +105,11 @@ var TablePlus = function TablePlus(props) {
105
105
 
106
106
 
107
107
  var eventNameEdit = function eventNameEdit() {
108
+ if (eventNameInput.length > 20) {
109
+ message.error('名称不可超过20字符');
110
+ return;
111
+ }
112
+
108
113
  request(apis.upsertEventGroup, {
109
114
  method: 'post',
110
115
  data: {
@@ -643,7 +648,7 @@ var TablePlus = function TablePlus(props) {
643
648
 
644
649
 
645
650
  useEffect(function () {
646
- var _Y = getTableScroll(98); // console.log('_Y', _Y);
651
+ var _Y = getTableScroll(102); // console.log('_Y', _Y);
647
652
 
648
653
 
649
654
  setScrollY(_Y);
@@ -25,9 +25,9 @@ var PlanList = function PlanList(props) {
25
25
 
26
26
  var _useContext = useContext(BizGlobalDataContext),
27
27
  currentApp = _useContext.currentApp,
28
- isDemo = _useContext.isDemo;
28
+ isDemo = _useContext.isDemo; // console.log('②埋点方案管理', currentApp?.appId, getAppID(currentApp));
29
+ // 查看方案
29
30
 
30
- console.log('②埋点方案管理', currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId, getAppID(currentApp)); // 查看方案
31
31
 
32
32
  var tableSee = function tableSee(data) {
33
33
  setDetailId(data.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.2-y.1",
3
+ "version": "1.0.2-y.3",
4
4
  "module": "es/index.js",
5
5
  "typings": "es/index.d.ts",
6
6
  "license": "ISC",
@@ -53,7 +53,7 @@
53
53
  "umi-request": "^1.4.0",
54
54
  "yorkie": "^2.0.0"
55
55
  },
56
- "gitHead": "370c8eb31239d14d50c9a08c37fc8ec45b461ff0",
56
+ "gitHead": "91dcdf96b6e035082def9a2070b8fbf05cf9bfe4",
57
57
  "gitHooks": {
58
58
  "pre-commit": "lint-staged"
59
59
  }