mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
修改常中配置路径的使用
This commit is contained in:
@@ -305,7 +305,7 @@ export default {
|
|||||||
homeworkInfo: {},
|
homeworkInfo: {},
|
||||||
examInfo: {},
|
examInfo: {},
|
||||||
assessInfo: {},
|
assessInfo: {},
|
||||||
fileBaseUrl: this.$xpage.constants.fileBaseUrl,
|
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
|
||||||
btnLoading: false,
|
btnLoading: false,
|
||||||
curCFile:{},//课件内容
|
curCFile:{},//课件内容
|
||||||
coursewareInfo: {
|
coursewareInfo: {
|
||||||
|
|||||||
@@ -366,7 +366,7 @@
|
|||||||
data(){
|
data(){
|
||||||
return {
|
return {
|
||||||
converStatus:4,
|
converStatus:4,
|
||||||
fileBaseUrl:this.$xpage.constants.fileBaseUrl,
|
fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
|
||||||
curPdfPath:'',
|
curPdfPath:'',
|
||||||
curCFile:{},//当前课件的内容
|
curCFile:{},//当前课件的内容
|
||||||
comTypes:[
|
comTypes:[
|
||||||
|
|||||||
@@ -17,9 +17,11 @@ router.beforeEach((to, from, next) => {
|
|||||||
//动态计算文件的路径
|
//动态计算文件的路径
|
||||||
let configPath=process.env.VUE_APP_FILE_RELATIVE_PATH;
|
let configPath=process.env.VUE_APP_FILE_RELATIVE_PATH;
|
||||||
if(configPath.startsWith('http')){
|
if(configPath.startsWith('http')){
|
||||||
xpage.fileBaseUrl=configPath;
|
//xpage.fileBaseUrl=configPath;
|
||||||
|
xpage.constants.fileBaseUrl=configPath;
|
||||||
}else{
|
}else{
|
||||||
xpage.fileBaseUrl = window.location.protocol+'//'+window.location.host+configPath;
|
//xpage.fileBaseUrl = window.location.protocol+'//'+window.location.host+configPath;
|
||||||
|
xpage.constants.fileBaseUrl=window.location.protocol+'//'+window.location.host+configPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -293,7 +293,7 @@ export default {
|
|||||||
studyId: "",
|
studyId: "",
|
||||||
tags: [],
|
tags: [],
|
||||||
numberToLetter: numberToLetter,
|
numberToLetter: numberToLetter,
|
||||||
fileBaseUrl: this.$xpage.constants.fileBaseUrl,
|
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
|
||||||
blobUrl:'',//播放的文件地址,新添加,采用blob方式
|
blobUrl:'',//播放的文件地址,新添加,采用blob方式
|
||||||
getType: getType,
|
getType: getType,
|
||||||
courseType,
|
courseType,
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ export default {
|
|||||||
totalContent: 0, //课程内容数量
|
totalContent: 0, //课程内容数量
|
||||||
pageCount: 0,
|
pageCount: 0,
|
||||||
currentPage: 0,
|
currentPage: 0,
|
||||||
fileBaseUrl: this.$xpage.constants.fileBaseUrl,
|
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
|
||||||
contentList: [],
|
contentList: [],
|
||||||
sectionList: [],
|
sectionList: [],
|
||||||
teachers: [],
|
teachers: [],
|
||||||
|
|||||||
Reference in New Issue
Block a user