diff --git a/src/main.js b/src/main.js index e680e56..834a290 100644 --- a/src/main.js +++ b/src/main.js @@ -25,7 +25,8 @@ const router = createRouter({ // axios const createAxios = { install(app, options) { - axios.defaults.baseURL = 'http://127.0.0.1:8087/bigdata'; + // axios.defaults.baseURL = 'http://127.0.0.1:8087/bigdata'; + axios.defaults.baseURL = '/bigdata'; axios.defaults.timeout = 20000; app.config.globalProperties.$axios = axios; } diff --git a/vite.config.js b/vite.config.js index 05c1740..4b14147 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,5 +3,6 @@ import vue from '@vitejs/plugin-vue' // https://vitejs.dev/config/ export default defineConfig({ + base: './', plugins: [vue()], })