yh-i18n 2.3.5 → 2.3.7

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.
Files changed (2) hide show
  1. package/index.js +10 -12
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -281,17 +281,15 @@ function createLocalMessage (list) {
281
281
  }
282
282
 
283
283
  export function addI18nPage (router) {
284
- if (window.translateReady) {
285
- router.addRoute("Index", {
286
- path: "translate",
287
- name: "翻译管理",
288
- meta: {
289
- icon: "md-notifications",
290
- title: "翻译管理",
291
- },
292
- component: () => import("yh-i18n/list.vue"),
293
- });
294
- }
284
+ router.addRoute("Index", {
285
+ path: "translate",
286
+ name: "翻译管理",
287
+ meta: {
288
+ icon: "md-notifications",
289
+ title: "翻译管理",
290
+ },
291
+ component: () => import("yh-i18n/list.vue"),
292
+ });
295
293
  }
296
294
 
297
295
  export function cLog (string, isError = false) {
@@ -320,7 +318,7 @@ export const yhI18n = {
320
318
  if (!window.translateReady) {
321
319
  cLog("没有开启翻译管理,可以在开发环境或者在控制台运行后面的代码再刷新页面: `localStorage.translateReady = '1'`");
322
320
  }
323
- if (router && window.translateReady) {
321
+ if (router) {
324
322
  addI18nPage(router);
325
323
  } else {
326
324
  if (!router) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yh-i18n",
3
- "version": "2.3.5",
3
+ "version": "2.3.7",
4
4
  "description": "对于国际化的封装",
5
5
  "main": "index.js",
6
6
  "scripts": {