mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 21:06:42 +08:00
提交修改
This commit is contained in:
@@ -946,6 +946,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let postData={
|
let postData={
|
||||||
|
type:10,
|
||||||
content:null,
|
content:null,
|
||||||
homework:null,
|
homework:null,
|
||||||
exam:null
|
exam:null
|
||||||
|
|||||||
@@ -17,14 +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.constants.fileBaseUrl=configPath;
|
xpage.constants.fileBaseUrl=configPath;
|
||||||
}else{
|
}else{
|
||||||
//xpage.fileBaseUrl = window.location.protocol+'//'+window.location.host+configPath;
|
|
||||||
xpage.constants.fileBaseUrl=window.location.protocol+'//'+window.location.host+configPath;
|
xpage.constants.fileBaseUrl=window.location.protocol+'//'+window.location.host+configPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
NProgress.start();
|
NProgress.start();
|
||||||
|
|
||||||
if (whiteList.indexOf(to.path) !== -1) {
|
if (whiteList.indexOf(to.path) !== -1) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/**页面设置的一些常量,方便,用于一个处理只写一处,不要多处写*/
|
/**页面设置的一些常量,方便,用于一个处理只写一处,不要多处写*/
|
||||||
const constants={
|
const constants={
|
||||||
fileBaseUrl:'',
|
fileBaseUrl:'/upload',
|
||||||
newLoginKey:'boe_new_login'
|
newLoginKey:'boe_new_login'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -359,7 +359,7 @@
|
|||||||
totalContent: 0, //课程内容数量
|
totalContent: 0, //课程内容数量
|
||||||
pageCount: 0,
|
pageCount: 0,
|
||||||
currentPage: 0,
|
currentPage: 0,
|
||||||
fileBaseUrl: process.env.VUE_APP_FILE_BASE_URL,
|
fileBaseUrl: this.$xpage.constants.fileBaseUrl,//使用动态的路径 ,不使用配置的路径了process.env.VUE_APP_FILE_BASE_URL,
|
||||||
contentList: [],
|
contentList: [],
|
||||||
sectionList: [],
|
sectionList: [],
|
||||||
teachers: [],
|
teachers: [],
|
||||||
@@ -393,7 +393,7 @@
|
|||||||
this.$watermark.set(this.userInfo.name + this.userInfo.loginName);
|
this.$watermark.set(this.userInfo.name + this.userInfo.loginName);
|
||||||
this.courseId = this.$route.query.id;
|
this.courseId = this.$route.query.id;
|
||||||
this.loadData();
|
this.loadData();
|
||||||
|
//console.log(this.$xpage.constants.fileBaseUrl,'this.$xpage.constants.fileBaseUrl');
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
|
|||||||
Reference in New Issue
Block a user