test.vue 401 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <div class="test">
  3. {{ test }}
  4. </div>
  5. </template>
  6. <script>
  7. import axios from '@/utils/axios'
  8. export default {
  9. data() {
  10. return {
  11. test: '55555555555'
  12. }
  13. },
  14. async mounted() {
  15. const txt = await axios.get('https://www.baidu.com')
  16. console.log(666, txt)
  17. }
  18. }
  19. </script>
  20. <style lang="less" scoped>
  21. .test {
  22. background: red;
  23. border: solid 1px black;
  24. }
  25. </style>