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.
- package/index.js +10 -12
- 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
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
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
|
|
321
|
+
if (router) {
|
|
324
322
|
addI18nPage(router);
|
|
325
323
|
} else {
|
|
326
324
|
if (!router) {
|