test.vue 485B

1234567891011121314151617181920212223242526272829303132
  1. <style lang="sass" scoped>
  2. </style>
  3. <template>
  4. <div>123</div>
  5. </template>
  6. <script>
  7. export default {
  8. data () {
  9. return {
  10. }
  11. },
  12. mounted () {
  13. console.log(this)
  14. this.$ajax(this.$api.test.signin.url, {
  15. method: this.$api.test.signin.method,
  16. data: {
  17. userName: 1,
  18. passWord: 2
  19. }
  20. })
  21. .then(res => {
  22. console.log(res)
  23. }).catch(msg => {
  24. return false
  25. })
  26. }
  27. }
  28. </script>