fix: 首次访问获取客户端默认语言/静态路由title

This commit is contained in:
TsMask
2023-11-20 18:12:29 +08:00
parent 9fdd322757
commit e9054e320f
13 changed files with 142 additions and 35 deletions

View File

@@ -2,25 +2,46 @@
export const RESULT_CODE_SUCCESS = 1;
/**响应-msg正常成功 */
export const RESULT_MSG_SUCCESS = 'success';
export const RESULT_MSG_SUCCESS: Record<string, string> = {
zh_CN: '成功!',
en_US: 'Success!',
};
/**响应-code错误失败 */
export const RESULT_CODE_ERROR = 0;
/**响应-msg错误失败 */
export const RESULT_MSG_ERROR = 'error';
export const RESULT_MSG_ERROR: Record<string, string> = {
zh_CN: '错误!',
en_US: 'Error!',
};
/**响应-网络连接超时 */
export const RESULT_MSG_TIMEOUT = 'Network connection timeout!';
export const RESULT_MSG_TIMEOUT: Record<string, string> = {
zh_CN: '网络连接超时!',
en_US: 'Network Connection Timeout!',
};
/**响应-未知响应数据类型 */
export const RESULT_MSG_NOT_TYPE = 'Unknown response data type!';
export const RESULT_MSG_NOT_TYPE: Record<string, string> = {
zh_CN: '未知响应数据类型!',
en_US: 'Unknown Response Data Type!',
};
/**响应-服务器连接出错 */
export const RESULT_MSG_SERVER_ERROR = 'Server connection error!';
export const RESULT_MSG_SERVER_ERROR: Record<string, string> = {
zh_CN: '服务器连接出错!',
en_US: 'Server Connection Error!',
};
/**响应-请求地址未找到 */
export const RESULT_MSG_URL_NOTFOUND = 'Request address not found!';
export const RESULT_MSG_URL_NOTFOUND: Record<string, string> = {
zh_CN: '请求地址未找到!',
en_US: 'Request Address Not Found!',
};
/**响应-数据正在处理,请勿重复提交 */
export const RESULT_MSG_URL_RESUBMIT = 'Data is being processed, please do not resubmit!';
export const RESULT_MSG_URL_RESUBMIT: Record<string, string> = {
zh_CN: '数据正在处理,请勿重复提交!',
en_US: 'Data are being processed, please do not resubmit',
};