1234567891011121314151617181920212223242526272829 |
- <template>
- <div>
- <div v-for="tag in api.tags" :key="tag.name"><h1>{{ tag.name }}</h1> {{ tag.description }}</div>>
- </div>
- </template>
- <script>
- import Axios from "axios";
- export default {
- name: "ServiceApi",
- data: function() {
- return {
- api: {}
- };
- },
- props: ["sys"],
- created: function() {
- console.log(Location)
- Axios.get(
- `${Location.origin}/${this.sys}/v2/api-docs`,
- {}
- ).then(res => {
- this.api = res.data;
- console.log(this.api);
- });
- }
- }
- </script>
|