mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-07 01:46:42 +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'
|
||||
|
||||
# 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'
|
||||
|
||||
@@ -5,6 +5,18 @@ export const deepCopy = (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协议
|
||||
* @param {Object} type
|
||||
@@ -207,8 +219,8 @@ export function testType(type) { //此方法移到tools中
|
||||
|
||||
/**
|
||||
* 头像文字
|
||||
* @param {*} text
|
||||
* @returns
|
||||
* @param {*} text
|
||||
* @returns
|
||||
*/
|
||||
export function userAvatarText(text){
|
||||
if(text){
|
||||
|
||||
@@ -113,7 +113,7 @@ module.exports = {
|
||||
proxy: {
|
||||
'/systemapi': {
|
||||
// 目标代理服务器地址
|
||||
target: 'http://192.168.0.10:9090',
|
||||
target: 'http://localhost:9090',
|
||||
changeOrigin: true,
|
||||
logLevel:'debug',
|
||||
secure: false,
|
||||
|
||||
Reference in New Issue
Block a user