|
@@ -80,16 +80,21 @@ onMounted(() => {
|
|
|
|
|
|
//
|
|
|
const queryIsQuestion = async () => {
|
|
|
- let res: any = await queryIsQuestionApi()
|
|
|
- console.log("res")
|
|
|
- planId.value = res.data;
|
|
|
- if (planId.value == null) {
|
|
|
- //设置标识不显示
|
|
|
- isNeed.value = false
|
|
|
- } else {
|
|
|
- //设置标志显示
|
|
|
- isNeed.value = true
|
|
|
+ //判断用户是否登录
|
|
|
+ if (userInfo.token) {
|
|
|
+ let res: any = await queryIsQuestionApi()
|
|
|
+ console.log("res")
|
|
|
+ planId.value = res.data;
|
|
|
+ if (planId.value == null) {
|
|
|
+ //设置标识不显示
|
|
|
+ isNeed.value = false
|
|
|
+ } else {
|
|
|
+ //设置标志显示
|
|
|
+ isNeed.value = true
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//界面销毁函数
|