12
This commit is contained in:
parent
9c703ad75a
commit
139d634fba
@ -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('')
|
||||
|
||||
@ -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,
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user