Fix null pid

This commit is contained in:
Alex Ling 2022-02-20 03:58:36 +00:00
parent c80855bb5d
commit fd650bdf45

View File

@ -19,7 +19,7 @@ const component = () => {
else if (this.plugins.length > 0)
this.pid = this.plugins[0].id;
if (this.pid) this.list(pid);
this.list(pid);
})
.catch((e) => {
alert(
@ -33,6 +33,7 @@ const component = () => {
this.list(this.pid);
},
list(pid) {
if (!pid) return;
fetch(
`${base_url}api/admin/plugin/subscriptions?${new URLSearchParams(
{