mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-02 19:05:32 -04:00
Fix null pid
This commit is contained in:
parent
c80855bb5d
commit
fd650bdf45
@ -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(
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user