add more view for test

This commit is contained in:
2025-04-07 21:56:41 +08:00
parent 93add0c315
commit 5c0f5b2127
5 changed files with 69 additions and 58 deletions

View File

@@ -24,9 +24,6 @@
</template>
<script lang="ts" setup>
import { client } from "@/client";
import { TRPCClientError } from "@trpc/client";
var bitstream = null;
function handleFileChange(event: Event): void {
@@ -43,22 +40,9 @@ function handleFileChange(event: Event): void {
console.log(bitstream);
}
async function uploadBitStream() {
try {
const serverStatus = await client.api.status.query();
if (serverStatus != "OK") {
throw new Error("Server Busy...");
}
} catch (error) {
if (error instanceof TRPCClientError) {
console.error("Can't connect to Server!");
} else {
console.error(error);
}
}
}
async function uploadBitStream() {}
function checkFileType(file: File) { }
function checkFileType(file: File) {}
</script>
<style scoped lang="postcss">