401 Unauthorizedはよくないね
This commit is contained in:
parent
92847fefe0
commit
5642e73391
3
resources/assets/js/app.js
vendored
3
resources/assets/js/app.js
vendored
@ -85,6 +85,9 @@ $(() => {
|
|||||||
if (xhr.status === 409) {
|
if (xhr.status === 409) {
|
||||||
callback(JSON.parse(xhr.responseText));
|
callback(JSON.parse(xhr.responseText));
|
||||||
return;
|
return;
|
||||||
|
} else if (xhr.status === 401) {
|
||||||
|
alert('いいねするためにはログインしてください。');
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.error(xhr);
|
console.error(xhr);
|
||||||
|
Loading…
Reference in New Issue
Block a user