PortIO/resources/js/views/Downloads.vue

35 lines
661 B
Vue
Raw Normal View History

2023-05-14 09:36:47 +00:00
<template>
2023-05-16 11:25:37 +00:00
<h3>客户端下载</h3>
2023-05-14 09:36:47 +00:00
2023-05-16 11:25:37 +00:00
<table class="table table-bordered mt-3">
2023-05-14 09:36:47 +00:00
<thead>
2023-07-18 12:44:05 +00:00
<tr>
<th>名称</th>
<th>架构</th>
<th>下载</th>
</tr>
2023-05-14 09:36:47 +00:00
</thead>
<tbody>
2023-07-18 12:44:05 +00:00
<tr v-for="i in items">
<td>{{ i.name }}</td>
<td>{{ i.arch }}</td>
<td>
<a :href="i.url">下载</a>
</td>
</tr>
2023-05-14 09:36:47 +00:00
</tbody>
</table>
</template>
<script setup>
import { ref } from "vue";
2023-07-27 04:17:11 +00:00
import http from '../plugins/http'
2023-05-14 09:36:47 +00:00
2023-07-27 04:17:11 +00:00
const items = ref([])
2023-05-14 09:36:47 +00:00
2023-07-27 04:17:11 +00:00
http.get('clients').then((res) => {
items.value = res.data
})
2023-05-14 09:36:47 +00:00
</script>