vue create todoVue 创建项目,用以配合serverless实现一个完整的全栈项目

    1. <template>
    2. <div>
    3. <button @click="getData">send</button>
    4. </div>
    5. </template>
    6. <script>
    7. import axios from "axios";
    8. export default {
    9. methods: {
    10. async getData() {
    11. const backData = await axios({
    12. url: "https://dunteng20211102-2gsx7yvm8eb1c6ac-1300732915.ap-guangzhou.app.tcloudbase.com/app/todo",
    13. });
    14. console.log(backData);
    15. },
    16. },
    17. };
    18. </script>
    19. <style>
    20. </style>

    image.png