Vueの$ axios使用プラグイン

VUEコンポーネント要求とパラメータを渡すaxios使用で

GETINFO (){
これ $ axios
取得GURLapiUrl + "API接口" {、
params: {
ID: この $ルート クエリ shopId
}
})
次いで、RES => {
もし RES データ resultstatus == "成功" ){
console. log( res. data. result);
} else {
console. log( res.data.result);
}
})
. catch( function( error) {
console. log( error);
});
}


发布了18 篇原创文章 · 获赞 10 · 访问量 5万+

おすすめ

転載: blog.csdn.net/a350110085/article/details/80840344
おすすめ