|
@@ -106,7 +106,8 @@ export default {
|
106
|
106
|
},
|
107
|
107
|
computed: {
|
108
|
108
|
...mapUserState({
|
109
|
|
- UserInfo: x => x.UserInfo // 用户信息
|
|
109
|
+ UserInfo: x => x.UserInfo, // 用户信息
|
|
110
|
+ Student: x => x.UserInfo.student, // 用户信息
|
110
|
111
|
})
|
111
|
112
|
},
|
112
|
113
|
components: {
|
|
@@ -139,7 +140,8 @@ export default {
|
139
|
140
|
this.GetArticleDetail({ urlData: { id: Taro.getCurrentInstance().router.params.id } }).then((res) => {
|
140
|
141
|
this.ArticleInfo = res.data.data || {}
|
141
|
142
|
})
|
142
|
|
- if (this.UserInfo.studentId === null || this.UserInfo.studentId === '') {
|
|
143
|
+
|
|
144
|
+ if (!this.Student?.studentId) {
|
143
|
145
|
if (this.$refs.MainPage) {
|
144
|
146
|
this.$refs.MainPage.ShowStudentIdPopup = true
|
145
|
147
|
}
|