请求二次封装

This commit is contained in:
”chenxuelian“
2022-12-04 16:37:54 +08:00
parent af24bcda87
commit 1172dc260c
3 changed files with 19 additions and 13 deletions

View File

@@ -5,7 +5,9 @@
</template>
<script>
import {apiService} from '../../service/request.js'
export default {
computed: {},
data() {
return {
list: [{
@@ -24,7 +26,11 @@
}
},
onLoad() {
console.log('--------------')
apiService.getCategories().then(res => {
const {message} = res.data
console.log(message)
})
},
methods: {