We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<template> <div id="app"> {{list}} -- {{a}} -- {{aa}} <hr> <button @click="sendData">点击发送ajax</button> </div> </template> <script> import {mapState,mapGetters,mapMutations,mapActions} from 'vuex' export default { methods:{ ...mapMutations({ add:'add' }), async sendData(){ this.add(200) try{ const response = await this.$http.get('interface/blogs/all') const data = response.data console.log(data); }catch(err){ } } }, computed:{ ...mapState({ list:'list', a:'a' }), ...mapGetters({ aa:'aa' }) } } </script> <style> </style>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The text was updated successfully, but these errors were encountered: