UNPKG

youzanyun-devtool-worker

Version:

24 lines (23 loc) 906 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const spring4js_nodejs_1 = require("spring4js-nodejs"); let ActionDataSaveService = class ActionDataSaveService { async processRequest(ctx, next) { const { type } = ctx.query; if (type === "savePreview") { const { projectId, workbenchId, previewComps } = ctx.request.body; await this.h5ExtensionPreviewService.broadcastPreviewComps(projectId, workbenchId, previewComps); ctx.body = true; return true; } return false; } }; tslib_1.__decorate([ (0, spring4js_nodejs_1.Resource)() ], ActionDataSaveService.prototype, "h5ExtensionPreviewService", void 0); ActionDataSaveService = tslib_1.__decorate([ (0, spring4js_nodejs_1.Service)() ], ActionDataSaveService); exports.default = ActionDataSaveService;