修改常中配置路径的使用

This commit is contained in:
daihh
2022-11-09 09:17:44 +08:00
parent 81c25f3045
commit 7428a57ebc
5 changed files with 8 additions and 6 deletions

View File

@@ -305,7 +305,7 @@ export default {
homeworkInfo: {},
examInfo: {},
assessInfo: {},
fileBaseUrl: this.$xpage.constants.fileBaseUrl,
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
btnLoading: false,
curCFile:{},//课件内容
coursewareInfo: {

View File

@@ -366,7 +366,7 @@
data(){
return {
converStatus:4,
fileBaseUrl:this.$xpage.constants.fileBaseUrl,
fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
curPdfPath:'',
curCFile:{},//当前课件的内容
comTypes:[

View File

@@ -17,9 +17,11 @@ router.beforeEach((to, from, next) => {
//动态计算文件的路径
let configPath=process.env.VUE_APP_FILE_RELATIVE_PATH;
if(configPath.startsWith('http')){
xpage.fileBaseUrl=configPath;
//xpage.fileBaseUrl=configPath;
xpage.constants.fileBaseUrl=configPath;
}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;
}

View File

@@ -293,7 +293,7 @@ export default {
studyId: "",
tags: [],
numberToLetter: numberToLetter,
fileBaseUrl: this.$xpage.constants.fileBaseUrl,
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
blobUrl:'',//播放的文件地址新添加采用blob方式
getType: getType,
courseType,

View File

@@ -292,7 +292,7 @@ export default {
totalContent: 0, //课程内容数量
pageCount: 0,
currentPage: 0,
fileBaseUrl: this.$xpage.constants.fileBaseUrl,
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
contentList: [],
sectionList: [],
teachers: [],