路由守护,非登录禁止访问
This commit is contained in:
@@ -14,7 +14,7 @@ export default {
|
||||
|
||||
mounted() {
|
||||
axios.get('/api/v1/user/users').catch(function (error) {
|
||||
if (error.response.status == 400) {
|
||||
if (error.response.status === 400) {
|
||||
ElNotification.error({
|
||||
title: '错误',
|
||||
message: '请先登录',
|
||||
|
Reference in New Issue
Block a user