VUEコンポーネント要求とパラメータを渡すaxios使用で
GETINFO
(){
これ
。
$ axios
。取得( 本。 GURL。 apiUrl + "API接口" {、
params:
{
ID:
この
。
$ルート
。
クエリ
。
shopId
}
})
。次いで、( RES => {
もし
(
RES
。
データ
。
resultstatus
==
"成功"
){
console.
log(
res.
data.
result);
}
else {
console.
log(
res.data.result);
}
})
.
catch(
function(
error) {
console.
log(
error);
});
}