Skip to content

Commit

Permalink
build uni runtime (add mp-baidu nodeId)
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Apr 20, 2019
1 parent f475974 commit 3fb1bab
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 9 deletions.
4 changes: 3 additions & 1 deletion packages/uni-app-plus/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,9 @@ Component = function (options = {}) {
return MPComponent(options)
};

const MOCKS = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__', '__webviewId__'];
/* mp-toutiao __webviewId__ */
/* mp-baidu nodeId */
const MOCKS = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__', '__webviewId__', 'nodeId'];

function initMocks (vm) {
const mpInstance = vm.$mp[vm.mpType];
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-app-plus/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dcloudio/uni-app-plus",
"version": "0.0.225",
"version": "0.0.226",
"description": "uni-app app-plus",
"main": "dist/index.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion packages/uni-mp-baidu/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,9 @@ Component = function (options = {}) {
return MPComponent(options)
};

const MOCKS = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__', '__webviewId__'];
/* mp-toutiao __webviewId__ */
/* mp-baidu nodeId */
const MOCKS = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__', '__webviewId__', 'nodeId'];

function initMocks (vm) {
const mpInstance = vm.$mp[vm.mpType];
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-mp-baidu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dcloudio/uni-mp-baidu",
"version": "0.0.822",
"version": "0.0.823",
"description": "uni-app mp-baidu",
"main": "dist/index.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion packages/uni-mp-toutiao/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,9 @@ Component = function (options = {}) {
return MPComponent(options)
};

const MOCKS = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__', '__webviewId__'];
/* mp-toutiao __webviewId__ */
/* mp-baidu nodeId */
const MOCKS = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__', '__webviewId__', 'nodeId'];

function initMocks (vm) {
const mpInstance = vm.$mp[vm.mpType];
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-mp-toutiao/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dcloudio/uni-mp-toutiao",
"version": "0.0.320",
"version": "0.0.321",
"description": "uni-app mp-toutiao",
"main": "dist/index.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion packages/uni-mp-weixin/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,9 @@ Component = function (options = {}) {
return MPComponent(options)
};

const MOCKS = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__', '__webviewId__'];
/* mp-toutiao __webviewId__ */
/* mp-baidu nodeId */
const MOCKS = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__', '__webviewId__', 'nodeId'];

function initMocks (vm) {
const mpInstance = vm.$mp[vm.mpType];
Expand Down
2 changes: 1 addition & 1 deletion packages/uni-mp-weixin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dcloudio/uni-mp-weixin",
"version": "0.0.944",
"version": "0.0.945",
"description": "uni-app mp-weixin",
"main": "dist/index.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/core/runtime/wrapper/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import {
isPlainObject
} from 'uni-shared'

const MOCKS = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__', '__webviewId__']
/* mp-toutiao __webviewId__ */
/* mp-baidu nodeId */
const MOCKS = ['__route__', '__wxExparserNodeId__', '__wxWebviewId__', '__webviewId__', 'nodeId']

export function initMocks (vm) {
const mpInstance = vm.$mp[vm.mpType]
Expand Down

0 comments on commit 3fb1bab

Please sign in to comment.