Merge branch 'master' of git.code.tencent.com:beijing-rtss-test/bj-rtss-client

This commit is contained in:
Yuan 2023-09-08 16:11:04 +08:00
commit 8ad2e9116f
2 changed files with 6 additions and 2 deletions

View File

@ -36,6 +36,7 @@ import {
initCommonDrawApp,
saveCommonDrawDatas,
loadCommonDrawDatas,
saveDrawToServer,
} from './commonApp';
import { Notify } from 'quasar';
import { generateCalculateLink } from 'src/api/GenerateApi';
@ -110,7 +111,7 @@ export function initJkDrawApp(): IDrawApp {
global: true,
combinations: [CombinationKey.Ctrl],
onPress: () => {
saveJkDrawDatas(app);
saveDrawToServer(saveJkDrawDatas(app));
},
})
);
@ -154,6 +155,7 @@ export async function loadJkDrawDatas(): Promise<IGraphicStorage> {
export function saveJkDrawDatas(app: IDrawApp) {
const storage = saveCommonDrawDatas(app);
console.log(storage, '保存数据');
const graphics = app.queryStore.getAllGraphics();
graphics.forEach((g) => {
if (SectionLink.Type === g.type) {

View File

@ -27,6 +27,7 @@ import {
initCommonDrawApp,
saveCommonDrawDatas,
loadCommonDrawDatas,
saveDrawToServer,
} from './commonApp';
let thDrawApp: IDrawApp | null = null;
@ -85,7 +86,7 @@ export function initThDrawApp(): IDrawApp {
global: true,
combinations: [CombinationKey.Ctrl],
onPress: () => {
saveThDrawDatas(app);
saveDrawToServer(saveThDrawDatas(app));
},
})
);
@ -126,6 +127,7 @@ export async function loadThDrawDatas(): Promise<IGraphicStorage> {
export function saveThDrawDatas(app: IDrawApp) {
const storage = saveCommonDrawDatas(app);
console.log(storage, '保存数据');
const graphics = app.queryStore.getAllGraphics();
graphics.forEach((g) => {
if (TrackSection.Type === g.type) {