添加分享中心入口

This commit is contained in:
fofolee
2024-05-06 23:25:43 +08:00
parent 15395e3ff6
commit 619ee689f5
3 changed files with 24 additions and 15 deletions

View File

@@ -70,13 +70,13 @@
</q-item-section>
<q-item-section>复制到剪贴板</q-item-section>
</q-item>
<!-- <q-item clickable @click="showShare = true" v-close-popup>
<q-item clickable @click="shareCommand" v-close-popup>
<q-item-section side>
<q-icon name="share" />
</q-item-section>
<q-item-section>分享</q-item-section>
<q-tooltip>分享到分享中心</q-tooltip>
</q-item> -->
</q-item>
<q-item
clickable
v-close-popup
@@ -252,7 +252,6 @@
</template>
<script>
import { features } from "monaco-editor/esm/metadata.js";
import commandTypes from "../js/options/commandTypes.js";
import platformTypes from "../js/options/platformTypes.js";
import CrontabSetting from "components/popup/CrontabSetting";
@@ -420,7 +419,7 @@ export default {
// 导出到剪贴板
exportCommandRaw() {
utools.copyText(JSON.stringify(this.getRawCommand(), null, 4)) &&
quickcommand.showMessageBox("已复制到剪贴板");
utools.showNotification(`${this.commandInfo.features.explain}已复制到剪贴板`);
},
// 导出到文件
exportCommandFile() {
@@ -432,6 +431,10 @@ export default {
filters: [{ name: "json", extensions: ["json"] }],
});
},
shareCommand() {
this.exportCommandRaw();
utools.shellOpenExternal("https://qc.qaz.ink/submit");
},
},
};
</script>

View File

@@ -403,12 +403,6 @@
</q-list>
</q-menu>
</q-item>
<!-- <q-item clickable to="/share">
<q-item-section side>
<q-icon name="groups" />
</q-item-section>
<q-item-section>分享中心</q-item-section>
</q-item> -->
<!-- 收藏 -->
<q-item v-if="isTagStared" clickable v-close-popup @click="unMarkTag">
<q-item-section side>