uni-oaview 1.1.9 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -153,9 +153,9 @@ function compareVersions(versionA, versionB) {
153
153
  */
154
154
  function isCurrentVersionHigher(appVersion, warningText) {
155
155
  var currentVersion = getAppVersion();
156
- var result = compareVersions(appVersion, currentVersion);
156
+ var result = compareVersions(currentVersion, appVersion);
157
157
  if (result < 0) {
158
- Message.warning('版本更新', warningText || '您的App版本过低,请升级App后体验小程序新功能。');
158
+ Message.warning('版本更新', warningText || "\u60A8\u7684App\u7248\u672C\u8FC7\u4F4E\uFF0C\u8BF7\u5347\u7EA7App\u5230".concat(appVersion, "\u53CA\u4EE5\u4E0A\u7248\u672C\u540E\u4F53\u9A8C\u5C0F\u7A0B\u5E8F\u65B0\u529F\u80FD\u3002"));
159
159
  return false;
160
160
  }
161
161
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "uni-oaview",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "uniapp小程序组件库",
5
5
  "main": "dist/index.esm.js",
6
6
  "typings": "dist/index.d.ts",
@@ -47,9 +47,12 @@ export function compareVersions(versionA: string, versionB: string): number {
47
47
  */
48
48
  export function isCurrentVersionHigher(appVersion: string, warningText?: string): boolean {
49
49
  const currentVersion = getAppVersion();
50
- const result = compareVersions(appVersion, currentVersion);
50
+ const result = compareVersions(currentVersion, appVersion);
51
51
  if (result < 0) {
52
- Message.warning('版本更新', warningText || '您的App版本过低,请升级App后体验小程序新功能。');
52
+ Message.warning(
53
+ '版本更新',
54
+ warningText || `您的App版本过低,请升级App到${appVersion}及以上版本后体验小程序新功能。`,
55
+ );
53
56
  return false;
54
57
  }
55
58
  return true;