使用组件而非插件的形式重写 quickcommandUI

This commit is contained in:
fofolee
2022-04-25 01:43:57 +08:00
parent b0d06875b3
commit 6d8034d950
18 changed files with 426 additions and 493 deletions

View File

@@ -315,8 +315,8 @@ export default {
initPage() {
// 如果从 newcommand 进入则直接新建命令
if (this.newCommandDirect) {
if (quickcommand.enterData.type === "text") this.addNewCommand();
else this.editCommand(JSON.parse(quickcommand.enterData.payload));
if (this.$root.enterData.type === "text") this.addNewCommand();
else this.editCommand(JSON.parse(this.$root.enterData.payload));
this.$router.push("/configuration");
}
// 已启用的 features