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

master
Romesum 5 years ago
parent 061b10da10
commit d9f1ca0401

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

Loading…
Cancel
Save