🐛 fix(config): Bugs
This commit is contained in:
@@ -18,7 +18,7 @@ NEXT_PUBLIC_GITHUB_LINK=https://github.com/perfect-panel/ppanel-user-web
|
||||
|
||||
# Default Login User
|
||||
NEXT_PUBLIC_DEFAULT_USER_EMAIL=admin@ppanel.dev
|
||||
NEXT_PUBLIC_DEFAULT_USER_PASSWORD=admin-password
|
||||
NEXT_PUBLIC_DEFAULT_USER_PASSWORD=password
|
||||
|
||||
# Please put in the .env file, otherwise the i18n command will not work
|
||||
# OpenAI API key and proxy URL required for i18n command (optional)
|
||||
|
||||
+2
-1
@@ -57,7 +57,6 @@ declare namespace API {
|
||||
type CurrencyConfig = {
|
||||
currency_unit: string;
|
||||
currency_symbol: string;
|
||||
access_key: string;
|
||||
};
|
||||
|
||||
type Document = {
|
||||
@@ -235,6 +234,8 @@ declare namespace API {
|
||||
sni: string;
|
||||
allow_insecure: boolean;
|
||||
fingerprint: string;
|
||||
reality_server_addr: string;
|
||||
reality_server_port: number;
|
||||
reality_private_key: string;
|
||||
reality_public_key: string;
|
||||
reality_short_id: string;
|
||||
|
||||
Vendored
+2
-1
@@ -71,7 +71,6 @@ declare namespace API {
|
||||
type CurrencyConfig = {
|
||||
currency_unit: string;
|
||||
currency_symbol: string;
|
||||
access_key: string;
|
||||
};
|
||||
|
||||
type Document = {
|
||||
@@ -377,6 +376,8 @@ declare namespace API {
|
||||
sni: string;
|
||||
allow_insecure: boolean;
|
||||
fingerprint: string;
|
||||
reality_server_addr: string;
|
||||
reality_server_port: number;
|
||||
reality_private_key: string;
|
||||
reality_public_key: string;
|
||||
reality_short_id: string;
|
||||
|
||||
@@ -7,9 +7,9 @@ import { getAuthorization, Logout } from './common';
|
||||
|
||||
async function handleError(response: any) {
|
||||
const code = response.data?.code;
|
||||
if ([40002, 40003, 40004].includes(code)) return Logout();
|
||||
if (response?.config?.skipErrorHandler) return;
|
||||
if (!isBrowser()) return;
|
||||
if ([40002, 40003, 40004].includes(code)) return Logout();
|
||||
|
||||
const t = await getTranslations('common');
|
||||
const message =
|
||||
|
||||
Reference in New Issue
Block a user