mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
修改常中配置路径的使用
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -366,7 +366,7 @@
|
||||
data(){
|
||||
return {
|
||||
converStatus:4,
|
||||
fileBaseUrl:this.$xpage.constants.fileBaseUrl,
|
||||
fileBaseUrl:process.env.VUE_APP_FILE_BASE_URL,
|
||||
curPdfPath:'',
|
||||
curCFile:{},//当前课件的内容
|
||||
comTypes:[
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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: [],
|
||||
|
||||
Reference in New Issue
Block a user