From 5a89528e91003d56a647c02149c429abf898a8bf Mon Sep 17 00:00:00 2001 From: dongzp <975303544@qq.com> Date: Thu, 4 Jun 2026 15:57:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=A4=8D=E5=88=B6mock?= =?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 | 15 +++++++++++++-- mock/rrr.json | 1 + 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 mock/rrr.json diff --git a/admin.html b/admin.html index 5c803c8..6ad8ab0 100644 --- a/admin.html +++ b/admin.html @@ -159,9 +159,10 @@ {{ getPreviewText(scope.row.content) }} - + @@ -387,7 +388,7 @@ @@ -837,6 +838,16 @@ }; this.mockFileDialog.visible = true; }, + openMockFileDialogForCopy: function (item) { + this.mockFileDialog.mode = "copy"; + this.mockFileDialog.form = { + fileName: "", + alias: String(item.alias || "") + "-副本", + content: String(item.content || ""), + groupId: item.groupId || null, + }; + this.mockFileDialog.visible = true; + }, loadMockFiles: async function () { try { var resp = await fetch("/__mock-files"); diff --git a/mock/rrr.json b/mock/rrr.json new file mode 100644 index 0000000..0f0016a --- /dev/null +++ b/mock/rrr.json @@ -0,0 +1 @@ +{"code":0,"msg":"ok"}