mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-30 00:00:43 -04:00
Fix null pid
This commit is contained in:
@@ -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(
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user