mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-10-10 07:23:23 +08:00
新增创建命令副本
This commit is contained in:
@@ -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()), {
|
||||
|
Reference in New Issue
Block a user