Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
baiy committed Apr 15, 2022
1 parent e243da6 commit 9931404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/tool/library/json/components/jsonPath.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)});
Expand Down

0 comments on commit 9931404

Please sign in to comment.