Ver Fonte

工作台模块名称翻译

xiaohaizhao há 1 ano atrás
pai
commit
deed8d1da3
1 ficheiros alterados com 8 adições e 0 exclusões
  1. 8 0
      utils/work/work.js

+ 8 - 0
utils/work/work.js

@@ -27,6 +27,14 @@ function initWorkbench(that) {
         icon: "work-E-fuwu",
         list: apps.geteservice()
     }];
+    if (wx.getStorageSync('languagecode') != 'ZH') {
+        const language = getApp().globalData.Language;
+        entrance = entrance.map(v => {
+            v.label = language.getMapText(v.label)
+            return v
+        })
+    }
+
     wx.setStorageSync('auth', apps.authList)
     that.setData({
         entrance,