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"}