Skip to content

Commit 9931404

Browse files
committed
fix
1 parent e243da6 commit 9931404

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/tool/library/json/components/jsonPath.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default {
4343
output() {
4444
try{
4545
const json = this.json.trim();
46-
if (!json) {
46+
if (!json || !this.options.path) {
4747
return "";
4848
}
4949
const result = JSONPath({path: this.options.path, json:JSON.parse(json)});

0 commit comments

Comments
 (0)