From 41480304a28745047e6c6a5c79e5697af384d395 Mon Sep 17 00:00:00 2001 From: dntzhang Date: Wed, 7 Nov 2018 16:19:22 +0800 Subject: [PATCH] add omi router --- packages/omi-mp/dist/package.json | 1 + packages/omi-mp/dist/src/index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/omi-mp/dist/package.json b/packages/omi-mp/dist/package.json index 510c2989a..48f8b7ba8 100755 --- a/packages/omi-mp/dist/package.json +++ b/packages/omi-mp/dist/package.json @@ -35,6 +35,7 @@ "jest": "20.0.4", "object-assign": "4.1.1", "omi": "latest", + "omi-router": "^2.0.4", "postcss-flexbugs-fixes": "3.2.0", "postcss-loader": "2.0.8", "prettier": "^1.14.3", diff --git a/packages/omi-mp/dist/src/index.js b/packages/omi-mp/dist/src/index.js index 395cd5998..6403e5503 100755 --- a/packages/omi-mp/dist/src/index.js +++ b/packages/omi-mp/dist/src/index.js @@ -1,4 +1,5 @@ import { render } from 'omi' +import 'omi-router' import './assets/index.css' import './elements/app' import registerServiceWorker from './assets/register-service-worker'