mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-24 02:59:16 +08:00
parent
810891236b
commit
4bb0974c4a
@ -6,6 +6,7 @@ import router from '@/routers';
|
||||
import { GlobalStore } from '@/store';
|
||||
import { MsgError } from '@/utils/message';
|
||||
import { Base64 } from 'js-base64';
|
||||
import i18n from '@/lang';
|
||||
|
||||
const globalStore = GlobalStore();
|
||||
|
||||
@ -90,6 +91,10 @@ class RequestHttp {
|
||||
return data;
|
||||
}
|
||||
if (data.code && data.code !== ResultEnum.SUCCESS) {
|
||||
if (data.message.toLowerCase().indexOf('operation not permitted') !== -1) {
|
||||
MsgError(i18n.global.t('license.tamperHelper'));
|
||||
return data;
|
||||
}
|
||||
MsgError(data.message);
|
||||
return Promise.reject(data);
|
||||
}
|
||||
|
@ -1743,6 +1743,7 @@ const message = {
|
||||
introduce: 'Feature Introduction',
|
||||
waf: 'Upgrading to the professional version can provide features such as interception map, logs, block records, geographical location blocking, custom rules, custom interception pages, etc.',
|
||||
tamper: 'Upgrading to the professional version can protect websites from unauthorized modifications or tampering.',
|
||||
tamperHelper: 'Operation failed, the file or folder has tamper protection enabled. Please check and try again!',
|
||||
gpu: 'Upgrading to the professional version can help users visually monitor important parameters of GPU such as workload, temperature, memory usage in real time.',
|
||||
setting:
|
||||
'Upgrading to the professional version allows customization of panel logo, welcome message, and other information.',
|
||||
|
@ -1626,6 +1626,7 @@ const message = {
|
||||
introduce: '功能介紹',
|
||||
waf: '升級專業版可以獲得攔截地圖、日誌、封鎖記錄、地理位置封禁、自定義規則、自定義攔截頁面等功能。',
|
||||
tamper: '升級專業版可以保護網站免受未經授權的修改或篡改。',
|
||||
tamperHelper: '操作失敗,該文件或文件夾已經開啟防篡改,請檢查後重試!',
|
||||
gpu: '升級專業版可以幫助用戶實時直觀查看到 GPU 的工作負載、溫度、顯存等重要參數。',
|
||||
setting: '升級專業版可以自定義面板 Logo、歡迎簡介等信息。',
|
||||
monitor: '升級專業版可以查看網站的即時狀態、訪客趨勢、訪客來源、請求日誌等資訊。 ',
|
||||
|
@ -1625,6 +1625,7 @@ const message = {
|
||||
introduce: '功能介绍',
|
||||
waf: '升级专业版可以获得拦截地图、日志、封锁记录、地理位置封禁、自定义规则、自定义拦截页面等功能。',
|
||||
tamper: '升级专业版可以保护网站免受未经授权的修改或篡改。',
|
||||
tamperHelper: '操作失败,该文件或文件夹已经开启防篡改,请检查后重试!',
|
||||
gpu: '升级专业版可以帮助用户实时直观查看到 GPU 的工作负载、温度、显存等重要参数。',
|
||||
setting: '升级专业版可以自定义面板 Logo、欢迎简介等信息。',
|
||||
monitor: '升级专业版可以查看网站的实时状态、访客趋势、访客来源、请求日志等信息。',
|
||||
|
Loading…
Reference in New Issue
Block a user