Browse Source

表单默认值去掉

任一存 1 year ago
parent
commit
3ac37b35e0
2 changed files with 11 additions and 5 deletions
  1. 7 1
      README.md
  2. 4 4
      src/App.vue

+ 7 - 1
README.md

@@ -55,4 +55,10 @@ for 每个当前点
 # todo
 history最大条数
 
-多楼层?
+多楼层?
+
+默认值去掉 check
+
+恢复初始按钮
+
+选中这个点了,可以修改他的weight和z值

+ 4 - 4
src/App.vue

@@ -288,15 +288,15 @@ export default {
       infoText: '',
       loadingHandler: null,
       formData: {
-        path1: '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,47,76,101,125',
+        path1: process.env.NODE_ENV === 'production' ? '' : '1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,47,76,101,125',
         path2: '',
-        startPoint: '-38.5, 10.8',
-        endPoint: '-28.4, 12.2',
+        startPoint: process.env.NODE_ENV === 'production' ? '' : '-38.5, 10.8',
+        endPoint: process.env.NODE_ENV === 'production' ? '' : '-28.4, 12.2',
         maxHeight: '',
         minHeight: '',
         isAddingPoint: false,
         connectionMaxHeightGap: 1,
-        addPointHeight: -1.3,
+        addPointHeight: 0,
       },
       rawWholeDataHistory: {
         history: [],