标记来自分享的命令

This commit is contained in:
fofolee
2022-05-01 11:25:26 +08:00
parent 46885b29cd
commit 83c277363c
2 changed files with 8 additions and 7 deletions

View File

@@ -183,11 +183,16 @@ export default {
if (!code)
return quickcommand.showMessageBox("该命令格式有误!", "error");
let pushData = _.cloneDeep(command);
pushData.fromShare = true;
if (!pushData?.tags.includes("来自分享")) pushData.tags.push("来自分享");
this.$root.utools.putDB(
_.cloneDeep(pushData),
this.$root.utools.DBPRE.QC + code
);
// 通过模拟访问页面来统计下载量
utools.ubrowser
.goto(`https://www.yuque.com/${this.releaseRepo}/${code}`)
.run({ show: false });
quickcommand.showMessageBox("导入成功!可到「来自分享」标签查看");
},
updateSearch() {