Browse Source

优化 SUI.Browser.GetOS 方法,识别鸿蒙系统。

陈龙 10 months ago
parent
commit
723d42ae22

+ 1 - 0
.gitignore

@@ -110,3 +110,4 @@ UpgradeLog*.XML
 
 /src/Befri.Goldhoo/.vs
 /src/Befri.Goldhoo/.vs
+/src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/.vs

+ 1 - 1
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/README.md

@@ -1,6 +1,6 @@
 # SUI 说明文档
 
-**当前版本:** 1.2.10
+**当前版本:** 1.2.11
 
 **更新日期:** 2024/8/5
 

+ 6 - 0
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/UpdateLog.md

@@ -1,5 +1,11 @@
 # SUI 更新日志
 
+## 版本:1.2.11
+
+**更新时间:2024/8/2**
+
+1. 优化 SUI.Browser.GetOS 方法,识别鸿蒙系统。
+
 ## 版本:1.2.10
 
 **更新时间:2024/8/2**

File diff suppressed because it is too large
+ 0 - 0
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/src/sui.main-min.js


+ 5 - 3
src/Befri.Goldhoo/Befri.Goldhoo.Mobile.MvcUI/Content/themes/SUI/src/sui.main.js

@@ -1,7 +1,7 @@
 /*
  * SUI Web
  * 基于 jQuery 的 UI 库,适用于 Web 应用程序
- * 当前版本:1.2.9
+ * 当前版本:1.2.11
  * 最后更新日期:2024/8/2
  * 依赖:
  *	jQuery
@@ -990,7 +990,7 @@ window.DoGetCaretPosition = function (oField) {
  */
 var SUI = new function () {
     // SUI 版本号
-    this.Version = '1.2.10';
+    this.Version = '1.2.11';
 
     // SUI 更新时间
     this.UpdateDate = Date.DateFormat('2024/8/5');
@@ -1965,7 +1965,9 @@ SUI.Browser = new function () {
                 info += "Android";
             }
         } else if (platform.indexOf("Linux") > -1) {
-            if (ua.indexOf('Android') > -1) {
+            if (ua.indexOf('HarmonyOS') > -1) {
+                info = 'HarmonyOS';
+            } else if (ua.indexOf('Android') > -1) {
                 info = ua.match(/Android [\d.]+/)[0];
             } else {
                 info += "Linux";

Some files were not shown because too many files changed in this diff