增加打包配置i

This commit is contained in:
TS-QD1 2023-05-14 00:58:40 +08:00
parent b378105dfa
commit 5692a6c071
2 changed files with 3 additions and 1 deletions

View File

@ -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;
}

View File

@ -3,5 +3,6 @@ import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
base: './',
plugins: [vue()],
})