提交 8b590122 编写于 作者: B baiy 提交者: ninecents

fix

上级 230d89a9
......@@ -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)});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册