路由守护,非登录禁止访问

This commit is contained in:
jiayuqi7813
2022-06-29 01:57:47 +08:00
parent 0a26ce660c
commit bd76fea1ec

View File

@@ -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: '请先登录',