vue3 axios get 传递参数
例如有一个input:
<input type="text" class="login_input white-text" id="phone" v-model="phone" placeholder=" 请输入手机号" />需要 使用这样的写法
axios.get(<span style="color:#abe338">'https://127.0.0.1:4567/booking/verify-mobile/send'</span>, { params: { mobile: <span style="color:#f5ab35">this</span>.phone } })这样就会发送这样的请求:
https://127.0.0.1:4567/booking/verify-mobile/send?mobile=188xxxx9333