mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
建立自己的一个分支
This commit is contained in:
@@ -14,7 +14,7 @@ VUE_APP_BOE_WEB_URL = 'https://u.boe.com'
|
|||||||
VUE_APP_BOE_MOBILE_URL = 'http://192.168.0.10:8082/mobile'
|
VUE_APP_BOE_MOBILE_URL = 'http://192.168.0.10:8082/mobile'
|
||||||
|
|
||||||
# File路径的基础url
|
# File路径的基础url
|
||||||
VUE_APP_FILE_BASE_URL = 'http://192.168.0.10:9090/cdn/upload'
|
VUE_APP_FILE_BASE_URL = '/cdn/upload'
|
||||||
|
|
||||||
# 登录地址
|
# 登录地址
|
||||||
VUE_APP_LOGIN_URL='/pc/login'
|
VUE_APP_LOGIN_URL='/pc/login'
|
||||||
|
|||||||
@@ -5,6 +5,18 @@ export const deepCopy = (obj) => {
|
|||||||
return JSON.parse(JSON.stringify(obj));
|
return JSON.parse(JSON.stringify(obj));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**文件的基础路径*/
|
||||||
|
export function getFileBaseUrl() {
|
||||||
|
const protocol='https:'==window.location.protocol;
|
||||||
|
let configPath=process.env.VUE_APP_FILE_BASE_URL;
|
||||||
|
if(configPath.startsWith('http')){
|
||||||
|
return configPath;
|
||||||
|
}else{
|
||||||
|
let domain = window.location.host;
|
||||||
|
return protocol+='//'+domain+configPath;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取url协议
|
* 获取url协议
|
||||||
* @param {Object} type
|
* @param {Object} type
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ module.exports = {
|
|||||||
proxy: {
|
proxy: {
|
||||||
'/systemapi': {
|
'/systemapi': {
|
||||||
// 目标代理服务器地址
|
// 目标代理服务器地址
|
||||||
target: 'http://192.168.0.10:9090',
|
target: 'http://localhost:9090',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
logLevel:'debug',
|
logLevel:'debug',
|
||||||
secure: false,
|
secure: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user