增加打包配置i
This commit is contained in:
parent
b378105dfa
commit
5692a6c071
@ -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;
|
||||
}
|
||||
|
@ -3,5 +3,6 @@ import vue from '@vitejs/plugin-vue'
|
||||
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
plugins: [vue()],
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user