新增创建命令副本

This commit is contained in:
fofolee
2025-02-21 08:59:31 +08:00
parent a6c4016831
commit f606c34eca
3 changed files with 29 additions and 0 deletions

View File

@@ -59,6 +59,13 @@
<q-item-section>复制到剪贴板</q-item-section>
</q-item>
<q-item clickable v-close-popup @click="createCommandCopy">
<q-item-section side>
<q-icon name="file_copy" />
</q-item-section>
<q-item-section>创建命令副本</q-item-section>
</q-item>
<q-item clickable @click="shareCommand" v-close-popup>
<q-item-section side>
<q-icon name="share" />
@@ -189,6 +196,13 @@ export default {
`${this.commandInfo.features.explain}」已复制到剪贴板`
);
},
// 创建命令副本
createCommandCopy() {
this.$emit("commandChanged", {
type: "createCopy",
data: this.featureCode,
});
},
// 导出到文件
exportCommandFile() {
window.saveFile(JSON.stringify(this.getRawCommand()), {