添加protobuf依赖
This commit is contained in:
parent
096a2828e7
commit
599de6682c
@ -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": {
|
||||||
|
@ -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;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user