tijaio
This commit is contained in:
@@ -270,11 +270,7 @@ export default {
|
||||
url: "/pages/curriculum/index/index",
|
||||
type: "pageJump",
|
||||
},
|
||||
{
|
||||
name: "我的文章",
|
||||
url: "/pages/articleList/index",
|
||||
type: "pageJump",
|
||||
},
|
||||
|
||||
{
|
||||
name: "个人资料",
|
||||
url: "/pages/my/persData",
|
||||
@@ -295,9 +291,10 @@ export default {
|
||||
if (this.userInfo.id != undefined) {
|
||||
try {
|
||||
// 同时发送两个请求,使用 Promise.all 确保并行处理
|
||||
const [res1, res2] = await Promise.all([
|
||||
const [res1, res2,res3] = await Promise.all([
|
||||
this.$http.post("common/medicalRecords/getMedicalRecordsRoleByUser"),
|
||||
this.$http.post("common/medicalRecords/canCheck")
|
||||
this.$http.post("common/medicalRecords/canCheck"),
|
||||
this.$http.post("common/taihuTalentArticle/getArticleRoleByUser")
|
||||
]);
|
||||
|
||||
console.log("res1 at line 237:", res1);
|
||||
@@ -313,13 +310,24 @@ export default {
|
||||
type: "pageJump",
|
||||
contentType: "shengpi",
|
||||
});
|
||||
} if (res1.code == 0 && res1.roleFlag == 1) {
|
||||
}
|
||||
|
||||
if (res1.code == 0 && res1.roleFlag == 1) {
|
||||
this.pageList.splice(2, 0, {
|
||||
name: "我的医案",
|
||||
url: "/pages/medicalRecords/index",
|
||||
type: "pageJump",
|
||||
});
|
||||
}
|
||||
if (res3.code == 0 && res3.roleFlag == 1) {
|
||||
this.pageList.splice(2, 0, {
|
||||
|
||||
name: "我的文章",
|
||||
url: "/pages/articleList/index",
|
||||
type: "pageJump",
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
// 在两个请求都成功后更新 pageList
|
||||
|
||||
|
||||
Reference in New Issue
Block a user