测试接口

main
JayChou 8 months ago
parent b378c7f509
commit 0cbec0df8a
  1. 19
      src/App.vue

@ -4,6 +4,25 @@
<script lang="ts" setup>
import {} from 'vue'
import axios from 'axios'
const save = () => {
const data = {
insCode: 'c7c6aa3d-9d2e-40c3-8989-9f39c724eaa4',
instruType: 4,
instruList: '{}',
}
axios
.post('http://www.hniss.cn/api/service/putInstru', data, {
headers: {
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
},
})
.then((res) => {
console.log(res)
})
}
save()
</script>
<style lang="scss" scoped></style>

Loading…
Cancel
Save