s
This commit is contained in:
parent
cc697de863
commit
7987a8201c
@ -18,7 +18,9 @@ async function bootstrap() {
|
||||
setupI18n(app)
|
||||
await setupRouter(app)
|
||||
// 子页面中
|
||||
const origins=['https://erp.fontree.cn','http://172.16.100.93:9010','http://localhost:8080']
|
||||
app.mount('#app')
|
||||
}
|
||||
const origins=['https://erp.fontree.cn','http://172.16.100.93:9010']
|
||||
window.addEventListener('message', function(event) {
|
||||
|
||||
if (origins.includes(event.origin)){
|
||||
@ -27,8 +29,4 @@ async function bootstrap() {
|
||||
localStorage.setItem('userInfo',JSON.stringify(event.data.userInfo))
|
||||
}
|
||||
});
|
||||
|
||||
app.mount('#app')
|
||||
}
|
||||
|
||||
bootstrap()
|
||||
|
@ -2,7 +2,7 @@
|
||||
import axios from "axios";
|
||||
import { ElLoading } from 'element-plus'
|
||||
const request = axios.create({
|
||||
baseURL:JSON.parse(localStorage.getItem('mode')).VUE_APP_API_URL,
|
||||
baseURL:import.meta.env.VITE_APP_API_BASE_URL,
|
||||
timeout:5000
|
||||
});
|
||||
let loading
|
||||
|
Loading…
Reference in New Issue
Block a user