mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46:44 +08:00
Merge branch 'zcwy_0716_learning' into dev0515
This commit is contained in:
@@ -122,7 +122,7 @@
|
||||
<div style="font-weight: 400;font-size: 16px; margin-top: 8px;">{{userInfo.name}}</div>
|
||||
</div>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<el-dropdown-item @click.native="setCurIdentity(1)"><a :href="`${webBaseUrl}${isTiao ? '/uc/study/task' : '/uc/study/courses'}`">个人中心</a></el-dropdown-item>
|
||||
<el-dropdown-item @click.native="setCurIdentity(1)"><span @click="goCenter">个人中心</span></el-dropdown-item>
|
||||
<el-dropdown-item><router-link :to="'/home/'+userInfo.aid">个人主页</router-link></el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
@@ -269,10 +269,19 @@ export default {
|
||||
tomy(){
|
||||
console.log('lll')
|
||||
},
|
||||
goCenter(){
|
||||
console.log(this.isTiao,'isTiao')
|
||||
if(this.isTiao){
|
||||
if(this.nums == 0){
|
||||
window.location.href = `${this.webBaseUrl}/uc/study/task?type=9`;
|
||||
}
|
||||
window.location.href = `${this.webBaseUrl}/uc/study/task`;
|
||||
}else{
|
||||
window.location.href = `${this.webBaseUrl}/uc/study/courses`;
|
||||
}
|
||||
},
|
||||
loadBoeData() {
|
||||
if(this.nums>0){
|
||||
this.isTiao = true;
|
||||
}else if (this.nums == 0 && this.courseNum>0){
|
||||
if(this.nums == 0 && this.courseNum>0){
|
||||
this.isTiao = false;
|
||||
}else{
|
||||
this.isTiao = true;
|
||||
|
||||
Reference in New Issue
Block a user