mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
修改特殊机构字段截取的错误的问题
This commit is contained in:
@@ -25,6 +25,7 @@ export const cutFullName = (fullName,num) => {
|
|||||||
/**截取机构名称路径namePath最后两段,不包含第一个 */
|
/**截取机构名称路径namePath最后两段,不包含第一个 */
|
||||||
export const cutOrgNamePath = (namePath) => {
|
export const cutOrgNamePath = (namePath) => {
|
||||||
let newName=namePath;
|
let newName=namePath;
|
||||||
|
//debugger
|
||||||
if(newName){
|
if(newName){
|
||||||
let names=newName.split('/');
|
let names=newName.split('/');
|
||||||
let len=names.length;
|
let len=names.length;
|
||||||
@@ -32,7 +33,11 @@ export const cutOrgNamePath = (namePath) => {
|
|||||||
if(len>1){
|
if(len>1){
|
||||||
//newName=names[len-2]+'/'+names[len-1];
|
//newName=names[len-2]+'/'+names[len-1];
|
||||||
newName=names[1];
|
newName=names[1];
|
||||||
|
if(!newName){
|
||||||
|
newName=names[0]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// if(names.length>1){
|
// if(names.length>1){
|
||||||
// newName=names[1];
|
// newName=names[1];
|
||||||
// if(num==2){
|
// if(num==2){
|
||||||
|
|||||||
@@ -67,6 +67,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
//console.log(process.env,'process.env');
|
//console.log(process.env,'process.env');
|
||||||
this.refreshCode();
|
this.refreshCode();
|
||||||
if(this.portalLoginRememberMe && this.portalLoginRememberMe.rememberMe){
|
if(this.portalLoginRememberMe && this.portalLoginRememberMe.rememberMe){
|
||||||
|
|||||||
@@ -257,6 +257,8 @@ export default {
|
|||||||
const { status } = await apiCourse.del(params);
|
const { status } = await apiCourse.del(params);
|
||||||
if (status === 200) {
|
if (status === 200) {
|
||||||
this.$message.success('操作成功!');
|
this.$message.success('操作成功!');
|
||||||
|
//发送自己删除课程的事件
|
||||||
|
|
||||||
this.getList();
|
this.getList();
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user