yh-i18n 2.3.9 → 2.3.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.
Files changed (2) hide show
  1. package/index.js +1 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -278,6 +278,7 @@ export const yhI18n = {
278
278
  if (isNew) {
279
279
  const {addInitTask} = config;
280
280
  addInitTask(async () => {
281
+ if (!router || !router.hasRoute('Index')) return;
281
282
  addI18nPage(router);
282
283
  });
283
284
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yh-i18n",
3
- "version": "2.3.9",
3
+ "version": "2.3.10",
4
4
  "description": "对于国际化的封装",
5
5
  "main": "index.js",
6
6
  "scripts": {