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