UNPKG

youzanyun-devtool-worker

Version:

- web - ws - proxy

29 lines (28 loc) 929 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const spring4js_nodejs_1 = require("spring4js-nodejs"); const Command_1 = require("../Command"); let CommandGoBack = class CommandGoBack extends Command_1.AbstractCommand { getKey() { return 'go-back'; } async getDescription(workbenchId, projectId) { return { key: this.getKey(), description: "返回", text: "返回", disable: false, }; } async execute(workbenchId, projectId, params) { this.toolBarService.resetCommand(workbenchId, projectId); this.contentWindowService.goBack(workbenchId, projectId, params.parentWebviewParam); } async reset(workbenchId, projectId) { } }; CommandGoBack = tslib_1.__decorate([ spring4js_nodejs_1.Service() ], CommandGoBack); exports.default = CommandGoBack;