瀏覽代碼

demo稳定版 1.0.84

haojianlong 5 年之前
父節點
當前提交
41fa7e9321
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 4 4
      package.json
  2. 1 1
      src/items/DirectRelationItem.ts

+ 4 - 4
package.json

@@ -1,6 +1,6 @@
 {
     "name": "@saga-web/topology",
-    "version": "1.0.83",
+    "version": "1.0.84",
     "description": "上格云拓扑图引擎",
     "main": "lib/index.js",
     "types": "lib/index.d.js",
@@ -17,7 +17,7 @@
     "author": "郝建龙 (1061851420@qq.com)",
     "license": "ISC",
     "publishConfig": {
-        "registry": "http://dev.dp.sagacloud.cn:8082/repository/npm-hosted/"
+        "registry": "http://192.168.200.80:8081/repository/npm-hosted/"
     },
     "files": [
         "lib"
@@ -34,8 +34,8 @@
     },
     "dependencies": {
         "@saga-web/base": "2.1.9",
-        "@saga-web/draw": "2.1.75",
-        "@saga-web/graphy": "^2.1.47",
+        "@saga-web/draw": "2.1.82",
+        "@saga-web/graphy": "2.1.54",
         "axios": "^0.18.0",
         "pako": "^1.0.10",
         "poly-decomp": "^0.3.0",

+ 1 - 1
src/items/DirectRelationItem.ts

@@ -200,7 +200,7 @@ export class DirectRelationItem extends BaseRelationItem {
         }
         if (event.keyCode == 46 || event.keyCode == 8) {
             console.log("删除");
-            if (this.canMove) {
+            if (this.canMove()) {
                 this.pointList.splice(this.curIndex + 1, 1);
             }
         }