@@ -81,6 +81,13 @@
beReportUserId: ''
}
},
+ async asyncData ({ $axios, params,error, req, app }) {
+ let res = await $axios.$post('/api/user/getInfo')
+ if(!res.data || !res.data.uid)
+ {
+ error({ statusCode: 404, message: "页面未找到" });
+ }
+ },
async created() {