state指定をミスってた問題を修正
This commit is contained in:
parent
d511b80437
commit
bf78287563
4
Apps.js
4
Apps.js
@ -111,7 +111,7 @@ export default function Apps({
|
|||||||
AS.getItem("stationSwitch")
|
AS.getItem("stationSwitch")
|
||||||
.then((d) => {
|
.then((d) => {
|
||||||
if (d) {
|
if (d) {
|
||||||
setTrainMenu(d);
|
setStationMenu(d);
|
||||||
} else {
|
} else {
|
||||||
AS.setItem("stationSwitch", "true").then(Updates.reloadAsync);
|
AS.setItem("stationSwitch", "true").then(Updates.reloadAsync);
|
||||||
}
|
}
|
||||||
@ -125,7 +125,7 @@ export default function Apps({
|
|||||||
AS.getItem("trainSwitch")
|
AS.getItem("trainSwitch")
|
||||||
.then((d) => {
|
.then((d) => {
|
||||||
if (d) {
|
if (d) {
|
||||||
setStationMenu(d);
|
setTrainMenu(d);
|
||||||
} else {
|
} else {
|
||||||
AS.setItem("trainSwitch", "true").then(Updates.reloadAsync);
|
AS.setItem("trainSwitch", "true").then(Updates.reloadAsync);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user