提交 3fb1baba 编写于 作者: fxy060608's avatar fxy060608

build uni runtime (add mp-baidu nodeId)

上级 f4759747
...@@ -309,7 +309,9 @@ Component = function (options = {}) { ...@@ -309,7 +309,9 @@ Component = function (options = {}) {
return MPComponent(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) { function initMocks (vm) {
const mpInstance = vm.$mp[vm.mpType]; const mpInstance = vm.$mp[vm.mpType];
......
{ {
"name": "@dcloudio/uni-app-plus", "name": "@dcloudio/uni-app-plus",
"version": "0.0.225", "version": "0.0.226",
"description": "uni-app app-plus", "description": "uni-app app-plus",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -444,7 +444,9 @@ Component = function (options = {}) { ...@@ -444,7 +444,9 @@ Component = function (options = {}) {
return MPComponent(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) { function initMocks (vm) {
const mpInstance = vm.$mp[vm.mpType]; const mpInstance = vm.$mp[vm.mpType];
......
{ {
"name": "@dcloudio/uni-mp-baidu", "name": "@dcloudio/uni-mp-baidu",
"version": "0.0.822", "version": "0.0.823",
"description": "uni-app mp-baidu", "description": "uni-app mp-baidu",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -489,7 +489,9 @@ Component = function (options = {}) { ...@@ -489,7 +489,9 @@ Component = function (options = {}) {
return MPComponent(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) { function initMocks (vm) {
const mpInstance = vm.$mp[vm.mpType]; const mpInstance = vm.$mp[vm.mpType];
......
{ {
"name": "@dcloudio/uni-mp-toutiao", "name": "@dcloudio/uni-mp-toutiao",
"version": "0.0.320", "version": "0.0.321",
"description": "uni-app mp-toutiao", "description": "uni-app mp-toutiao",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -336,7 +336,9 @@ Component = function (options = {}) { ...@@ -336,7 +336,9 @@ Component = function (options = {}) {
return MPComponent(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) { function initMocks (vm) {
const mpInstance = vm.$mp[vm.mpType]; const mpInstance = vm.$mp[vm.mpType];
......
{ {
"name": "@dcloudio/uni-mp-weixin", "name": "@dcloudio/uni-mp-weixin",
"version": "0.0.944", "version": "0.0.945",
"description": "uni-app mp-weixin", "description": "uni-app mp-weixin",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -5,7 +5,9 @@ import { ...@@ -5,7 +5,9 @@ import {
isPlainObject isPlainObject
} from 'uni-shared' } 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) { export function initMocks (vm) {
const mpInstance = vm.$mp[vm.mpType] const mpInstance = vm.$mp[vm.mpType]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册