添加protobuf依赖

This commit is contained in:
joylink_fanyuhong 2024-09-13 10:13:48 +08:00
parent 096a2828e7
commit 599de6682c
2 changed files with 14 additions and 0 deletions

View File

@ -21,6 +21,7 @@
"axios": "^1.2.1", "axios": "^1.2.1",
"pinia": "^2.0.11", "pinia": "^2.0.11",
"js-base64": "^3.7.5", "js-base64": "^3.7.5",
"google-protobuf": "^3.21.2",
"jl-graphic": "git+http://120.46.212.6:3000/joylink/graphic-pixi.git#v0.1.15" "jl-graphic": "git+http://120.46.212.6:3000/joylink/graphic-pixi.git#v0.1.15"
}, },
"devDependencies": { "devDependencies": {

View File

@ -10,6 +10,8 @@ import {
newDrawApp, newDrawApp,
} from 'jl-graphic'; } from 'jl-graphic';
import { useDrawStore } from 'src/stores/draw-store'; import { useDrawStore } from 'src/stores/draw-store';
// import { graphicData } from 'src/protos/stationLayoutGraphics';
import { iscsGraphicData } from 'src/protos/iscs_graphic_data';
// import { Notify } from 'quasar'; // import { Notify } from 'quasar';
@ -144,3 +146,14 @@ export function saveDrawToServer(base64: string) {
} }
console.log('save' + base64); console.log('save' + base64);
} }
let UniqueIdPrefix = new iscsGraphicData.UniqueIdOfStationLayout();
export function loadUniqueIdPrefix() {
return UniqueIdPrefix;
}
export function setUniqueIdPrefix(
newUniqueIdPrefix: iscsGraphicData.UniqueIdOfStationLayout
) {
UniqueIdPrefix = newUniqueIdPrefix;
}