空指针

This commit is contained in:
小海
2020-04-24 10:28:14 +08:00
parent 757cdf31df
commit 042c4d4fda

View File

@@ -33,7 +33,7 @@ export class ComponentStateService {
const prefix = path.substr(0, indexOf === 0 ? path.length : indexOf);
this.dealWithPathChange(prefix)
this.currentPath = prefix;
subscriber.next(prefix)
if (subscriber) subscriber.next(prefix)
});
return ob;
}