mirror of
https://github.com/khairul169/vaulterm.git
synced 2026-09-15 17:03:30 +07:00
fix: native gitlab & github login
This commit is contained in:
+3
-2
@@ -27,8 +27,9 @@ const api = ofetch.create({
|
||||
throw new Error("Unauthorized");
|
||||
}
|
||||
|
||||
if (error.response._data) {
|
||||
const message = error.response._data.message;
|
||||
const data = error.response._data;
|
||||
if (data) {
|
||||
const message = typeof data === "string" ? data : data?.message;
|
||||
throw new Error(message || "Something went wrong");
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user