From 8b590122475ae3e9d52eb6d9e679e0f1efe9967f Mon Sep 17 00:00:00 2001 From: baiy Date: Fri, 15 Apr 2022 13:05:26 +0800 Subject: [PATCH] fix --- src/views/tool/library/json/components/jsonPath.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/tool/library/json/components/jsonPath.vue b/src/views/tool/library/json/components/jsonPath.vue index 213d673..e8a1c23 100644 --- a/src/views/tool/library/json/components/jsonPath.vue +++ b/src/views/tool/library/json/components/jsonPath.vue @@ -43,7 +43,7 @@ export default { output() { try{ const json = this.json.trim(); - if (!json) { + if (!json || !this.options.path) { return ""; } const result = JSONPath({path: this.options.path, json:JSON.parse(json)}); -- GitLab