mirror of
https://github.com/hkalexling/Mango.git
synced 2025-08-03 03:15:31 -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)
|
else if (this.plugins.length > 0)
|
||||||
this.pid = this.plugins[0].id;
|
this.pid = this.plugins[0].id;
|
||||||
|
|
||||||
if (this.pid) this.list(pid);
|
this.list(pid);
|
||||||
})
|
})
|
||||||
.catch((e) => {
|
.catch((e) => {
|
||||||
alert(
|
alert(
|
||||||
@ -33,6 +33,7 @@ const component = () => {
|
|||||||
this.list(this.pid);
|
this.list(this.pid);
|
||||||
},
|
},
|
||||||
list(pid) {
|
list(pid) {
|
||||||
|
if (!pid) return;
|
||||||
fetch(
|
fetch(
|
||||||
`${base_url}api/admin/plugin/subscriptions?${new URLSearchParams(
|
`${base_url}api/admin/plugin/subscriptions?${new URLSearchParams(
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user