diff --git a/package.json b/package.json index e89c56b..d5711f4 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "@quasar/extras": "^1.16.4", "axios": "^1.2.1", "google-protobuf": "^3.21.4", - "jl-graphic": "git+https://gitea.joylink.club/joylink/graphic-pixi.git#v0.1.18", + "jl-graphic": "git+https://gitea.joylink.club/joylink/graphic-pixi.git#v0.1.19", "js-base64": "^3.7.5", "pinia": "^2.0.11", "quasar": "^2.16.0", diff --git a/src/drawApp/iscsApp.ts b/src/drawApp/iscsApp.ts index 73c3063..11ff46e 100644 --- a/src/drawApp/iscsApp.ts +++ b/src/drawApp/iscsApp.ts @@ -6,6 +6,7 @@ import { KeyListener, newDrawApp, ClientEngine, + GraphicIdGenerator, } from 'jl-graphic'; import { @@ -107,6 +108,10 @@ function handleSubscribe(app: IDrawApp) { const proto = handlerTypeData(data); const template = app.getGraphicTemplatesByType(proto.graphicType); const g = template.new(); + if (app.queryStore.checkIdExist(proto.id)) { + const newId = GraphicIdGenerator.next(); + proto.id = newId; + } g.loadData(proto); app.addGraphics(g); }); diff --git a/yarn.lock b/yarn.lock index 0444ae5..8e0a362 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2528,9 +2528,9 @@ isobject@^3.0.1: resolved "https://mirrors.huaweicloud.com/repository/npm/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== -"jl-graphic@git+https://gitea.joylink.club/joylink/graphic-pixi.git#v0.1.18": - version "0.1.16" - resolved "git+https://gitea.joylink.club/joylink/graphic-pixi.git#38045a10271f81b65820db402051fefc62b0a2cd" +"jl-graphic@git+https://gitea.joylink.club/joylink/graphic-pixi.git#v0.1.19": + version "0.1.18" + resolved "git+https://gitea.joylink.club/joylink/graphic-pixi.git#1c803d096585e258be3f60d3d95d1bd0c318d316" dependencies: "@pixi/graphics-extras" "^7.3.2" "@pixi/utils" "^7.3.2"