From 539a56279625242c497b4b4093f2defbb9d80334 Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期四, 29 一月 2026 14:05:44 +0800
Subject: [PATCH] #i18n翻译
---
src/main/webapp/static/js/saas/stockAdjust.js | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/main/webapp/static/js/saas/stockAdjust.js b/src/main/webapp/static/js/saas/stockAdjust.js
index cb68ae0..d3c254d 100644
--- a/src/main/webapp/static/js/saas/stockAdjust.js
+++ b/src/main/webapp/static/js/saas/stockAdjust.js
@@ -98,12 +98,20 @@
async: false,
success: function (res) {
if (res.code === 200){
- layer.msg(currLocNo + res.msg, {icon: 1});
+ if (typeof I18n !== 'undefined') {
+ layer.msg(currLocNo + " " + I18n.t(res.msg), {icon: 1});
+ } else {
+ layer.msg(currLocNo + res.msg, {icon: 1});
+ }
init(currLocNo)
} else if (res.code === 403){
top.location.href = baseUrl+"/";
}else {
- layer.msg(res.msg, {icon: 2})
+ if (typeof I18n !== 'undefined') {
+ layer.msg(I18n.t(res.msg), {icon: 2});
+ } else {
+ layer.msg(res.msg, {icon: 2});
+ }
}
}
})
--
Gitblit v1.9.1