feat(web): fetch-based api client with 401 handling and tests

This commit is contained in:
2026-04-29 07:49:33 +08:00
parent 7c164f6aea
commit 3eb595cf5e
6 changed files with 181 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import { fileURLToPath, URL } from 'node:url'
export default defineConfig({
plugins: [vue()],
test: {
environment: 'happy-dom',
globals: true,
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
})