diff --git a/src/App.vue b/src/App.vue index 9c269f5..3508930 100644 --- a/src/App.vue +++ b/src/App.vue @@ -19,7 +19,7 @@ export default defineComponent({ }, methods: { init() { - window.utools = window.getuToolsLite() + window.utools = window.getuToolsLite(); // 版本检测 const requiredVersion = "2.6.1"; let version = utools.getAppVersion(); @@ -37,7 +37,12 @@ export default defineComponent({ this.$q.dark.set(utools.isDarkColors()); // 路由跳转 quickcommand.enterData = enter; - this.$router.push(enter.code); + this.$router.push({ + path: enter.code, + query: { + timestamp: new Date().getTime(), + }, + }); }); }, }, diff --git a/src/components/CommandRunResult.vue b/src/components/CommandRunResult.vue index a98c803..d312962 100644 --- a/src/components/CommandRunResult.vue +++ b/src/components/CommandRunResult.vue @@ -29,7 +29,10 @@
- {{ action.data }} +

       
@@ -48,6 +51,9 @@ export default { props: { action: Object, }, + mounted() { + window.runResult = this; + }, methods: { // 运行命令 async runCurrentCommand(currentCommand) { diff --git a/src/pages/CommandPage.vue b/src/pages/CommandPage.vue index 5107dfb..248a256 100644 --- a/src/pages/CommandPage.vue +++ b/src/pages/CommandPage.vue @@ -1,22 +1,41 @@