[feat][V]:添加axios简单用例

master
Romesum 5 years ago
parent 061b10da10
commit d9f1ca0401

@ -8,23 +8,29 @@
</template>
<script>
export default {
import {post} from "~/utils";
export default {
methods: {
startHacking () {
async startHacking() {
this.$notify({
title: 'It works!',
type: 'success',
message: 'We\'ve laid the ground work for you. It\'s time for you to build something epic!',
duration: 5000
})
await post('lb/lab/test', {
data: 'data'
})
}
}
}
}
</script>
<style>
#app {
#app {
font-family: Helvetica, sans-serif;
text-align: center;
}
}
</style>

Loading…
Cancel
Save