From a23a9846b3a1d36ae559f701851133eb62c44de4 Mon Sep 17 00:00:00 2001
From: dongzp <975303544@qq.com>
Date: Tue, 9 Jun 2026 14:33:03 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E5=B1=8F=E7=BC=96=E8=BE=91mock?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
admin.html | 24 ++++++++++++++++++++++--
1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/admin.html b/admin.html
index 482bca9..82cf41b 100644
--- a/admin.html
+++ b/admin.html
@@ -51,6 +51,14 @@
.route-table .el-table__cell .cell {
white-space: nowrap;
}
+ .mock-content-textarea textarea {
+ font-family: Consolas, Monaco, "Courier New", monospace;
+ line-height: 1.5;
+ }
+ .el-dialog.is-fullscreen .el-dialog__body {
+ overflow-y: auto;
+ max-height: calc(100vh - 120px);
+ }
@@ -390,7 +398,9 @@
@@ -415,9 +425,15 @@
+
+
+
+ {{ mockFileDialog.fullscreen ? '退出全屏' : '全屏编辑' }}
+
+
@@ -633,6 +649,7 @@
},
mockFileDialog: {
visible: false,
+ fullscreen: false,
mode: "create",
form: {
fileName: "",
@@ -827,6 +844,7 @@
},
openMockFileDialogForCreate: function () {
this.mockFileDialog.mode = "create";
+ this.mockFileDialog.fullscreen = false;
this.mockFileDialog.form = this.getDefaultMockFileForm();
this.mockFileDialog.visible = true;
},
@@ -834,6 +852,7 @@
var full = item.filePath || "";
var name = full.indexOf("mock/") === 0 ? full.slice(5) : full;
this.mockFileDialog.mode = "edit";
+ this.mockFileDialog.fullscreen = false;
this.mockFileDialog.form = {
fileName: name,
alias: String(item.alias || ""),
@@ -853,6 +872,7 @@
},
openMockFileDialogForCopy: function (item) {
this.mockFileDialog.mode = "copy";
+ this.mockFileDialog.fullscreen = false;
this.mockFileDialog.form = {
fileName: "",
alias: String(item.alias || "") + "-副本",