🐛 add interface access permissions

This commit is contained in:
landaiqing
2024-09-04 19:00:21 +08:00
parent 9b3a6d37de
commit ec6b0a9c9f
12 changed files with 94 additions and 54 deletions

View File

@@ -6,6 +6,7 @@ export function handleCode(code: number): void {
message
.open({
content: i18n.global.t("error.400"),
duration: 5,
type: "error",
})
.then();
@@ -14,6 +15,7 @@ export function handleCode(code: number): void {
message
.open({
content: i18n.global.t("error.401"),
duration: 5,
type: "error",
})
.then();
@@ -22,6 +24,7 @@ export function handleCode(code: number): void {
message
.open({
content: i18n.global.t("error.403"),
duration: 5,
type: "error",
})
.then();
@@ -30,6 +33,7 @@ export function handleCode(code: number): void {
message
.open({
content: i18n.global.t("error.404"),
duration: 5,
type: "error",
})
.then();
@@ -38,6 +42,7 @@ export function handleCode(code: number): void {
message
.open({
content: i18n.global.t("error.408"),
duration: 5,
type: "error",
})
.then();
@@ -46,6 +51,7 @@ export function handleCode(code: number): void {
message
.open({
content: i18n.global.t("error.500"),
duration: 5,
type: "error",
})
.then();
@@ -54,6 +60,7 @@ export function handleCode(code: number): void {
message
.open({
content: i18n.global.t("error.501"),
duration: 5,
type: "error",
})
.then();
@@ -62,6 +69,7 @@ export function handleCode(code: number): void {
message
.open({
content: i18n.global.t("error.502"),
duration: 5,
type: "error",
})
.then();
@@ -70,6 +78,7 @@ export function handleCode(code: number): void {
message
.open({
content: i18n.global.t("error.503"),
duration: 5,
type: "error",
})
.then();
@@ -78,6 +87,7 @@ export function handleCode(code: number): void {
message
.open({
content: i18n.global.t("error.504"),
duration: 5,
type: "error",
})
.then();
@@ -86,6 +96,7 @@ export function handleCode(code: number): void {
message
.open({
content: i18n.global.t("error.505"),
duration: 5,
type: "error",
})
.then();
@@ -94,6 +105,7 @@ export function handleCode(code: number): void {
message
.open({
content: i18n.global.t("error.other") + `(${code})`,
duration: 5,
type: "error",
})
.then();