This commit is contained in:
etoai 2026-05-08 01:03:17 +08:00
parent 9c703ad75a
commit 139d634fba
2 changed files with 9 additions and 2 deletions

View File

@ -99,7 +99,7 @@ import axios from 'axios'
import { ElMessage } from 'element-plus'
import { Refresh, RefreshRight } from '@element-plus/icons-vue'
const API_URL = 'http://127.0.0.1:8000/api/lof'
const API_URL = '/api/lof'
const authenticated = ref(sessionStorage.getItem('auth') === 'true')
const password = ref('')

View File

@ -1,8 +1,15 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
base: '/',
plugins: [vue()],
server: {
proxy: {
'/api': {
target: 'http://127.0.0.1:8000',
changeOrigin: true,
},
},
},
})