修改打包文件和调用路径

This commit is contained in:
何童崇 2022-02-09 15:51:37 +08:00
parent 8a72ace09d
commit 9568a60915
2 changed files with 760 additions and 759 deletions

1514
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -25,14 +25,15 @@ if (isDev) {
} }
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' : debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
window.location.search.indexOf('debug=s') !== -1 ? 'student' : window.location.search.indexOf('debug=s') !== -1 ? 'student' :
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'admin' window.location.search.indexOf('debug=a') !== -1 ? 'a' : parsed.debug || 'a'
} }
window._debugType = debugType; window._debugType = debugType;
export function initAxiosInterceptors(props) { export function initAxiosInterceptors(props) {
// 判断网络是否连接 // 判断网络是否连接
initOnlineOfflineListener(); initOnlineOfflineListener();
var proxy = "http://192.168.1.40:3000"; // var proxy = "http://192.168.1.40:3000";
var proxy = "http://117.50.100.12:49999";
//响应前的设置 //响应前的设置
axios.interceptors.request.use( axios.interceptors.request.use(
config => { config => {