tutorial
[Link]
[Link]
[Link]
npm install -g cnpm --registry=[Link]
<template>
</template>
<script>
</script>
<style>
</style>
html,body{
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
h1,h2,h3,h4,h5,h6,p,div,ul,li{
margin: 0;
padding: 0;
}
a{
text-decoration: none;
}
li{
list-style: none;
}
#app {
width: 100%;
height: 100%;
}
import axios from "axios"
import { provide } from "vue";
[Link] = "[Link]
provide("axios",axios);
<script setup>
import axios from "axios"
import { provide } from "vue";
[Link] = "[Link]
provide("axios",axios);
</script>
npm install axios --save
import { inject } from 'vue';
const axios = inject('axios');