setoとlangとbetweenを定数化
This commit is contained in:
@@ -12,6 +12,9 @@ import dosan2 from "../assets/originData/dosan2";
|
||||
import koutoku from "../assets/originData/koutoku";
|
||||
import tokushima from "../assets/originData/tokushima";
|
||||
import naruto from "../assets/originData/naruto";
|
||||
import seto from "../assets/originData/seto";
|
||||
import between from "../assets/originData/between";
|
||||
import train_lang from "../assets/originData/train_lang";
|
||||
|
||||
let status = undefined;
|
||||
|
||||
@@ -32,18 +35,9 @@ export const getStationList = async (props) => {
|
||||
koutoku,
|
||||
tokushima,
|
||||
naruto,
|
||||
fetch(
|
||||
"https://train.jr-shikoku.co.jp/g?arg1=station&arg2=seto",
|
||||
HeaderConfig
|
||||
).then((response) => response.json()),
|
||||
fetch(
|
||||
"https://train.jr-shikoku.co.jp/g?arg1=station&arg2=between",
|
||||
HeaderConfig
|
||||
).then((response) => response.json()),
|
||||
fetch(
|
||||
"https://train.jr-shikoku.co.jp/g?arg1=line&arg2=train_lang",
|
||||
HeaderConfig
|
||||
).then((response) => response.json()),
|
||||
seto,
|
||||
between,
|
||||
train_lang,
|
||||
]).then((values) => {
|
||||
let stationList = {};
|
||||
[
|
||||
|
Reference in New Issue
Block a user