Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0602f1d21d |
@@ -5,6 +5,9 @@ const axiosInstance = axios.create({
|
|||||||
})
|
})
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
getVersion:() =>
|
||||||
|
axiosInstance.get('/api/version'),
|
||||||
|
|
||||||
getTokenList: () =>
|
getTokenList: () =>
|
||||||
axiosInstance.get('/api/token'),
|
axiosInstance.get('/api/token'),
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,16 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import api from "@/api.ts";
|
||||||
|
|
||||||
|
const version = ref('')
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
api.getVersion().then((response) => {
|
||||||
|
version.value = response.data
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
TODO
|
{{ version }}
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
Reference in New Issue
Block a user