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

build uni runtime

上级 db93a184
......@@ -347,6 +347,10 @@ function getData (vueOptions, context) {
} catch (e) {}
}
if (!isPlainObject(data)) {
data = {};
}
Object.keys(methods).forEach(methodName => {
if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
data[methodName] = methods[methodName];
......
{
"name": "@dcloudio/uni-app-plus",
"version": "0.0.221",
"version": "0.0.222",
"description": "uni-app app-plus",
"main": "dist/index.js",
"scripts": {
......
......@@ -482,6 +482,10 @@ function getData (vueOptions, context) {
} catch (e) {}
}
if (!isPlainObject(data)) {
data = {};
}
Object.keys(methods).forEach(methodName => {
if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
data[methodName] = methods[methodName];
......
{
"name": "@dcloudio/uni-mp-baidu",
"version": "0.0.816",
"version": "0.0.817",
"description": "uni-app mp-baidu",
"main": "dist/index.js",
"scripts": {
......
......@@ -527,6 +527,10 @@ function getData (vueOptions, context) {
} catch (e) {}
}
if (!isPlainObject(data)) {
data = {};
}
Object.keys(methods).forEach(methodName => {
if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
data[methodName] = methods[methodName];
......
{
"name": "@dcloudio/uni-mp-toutiao",
"version": "0.0.316",
"version": "0.0.317",
"description": "uni-app mp-toutiao",
"main": "dist/index.js",
"scripts": {
......
......@@ -374,6 +374,10 @@ function getData (vueOptions, context) {
} catch (e) {}
}
if (!isPlainObject(data)) {
data = {};
}
Object.keys(methods).forEach(methodName => {
if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
data[methodName] = methods[methodName];
......
{
"name": "@dcloudio/uni-mp-weixin",
"version": "0.0.940",
"version": "0.0.941",
"description": "uni-app mp-weixin",
"main": "dist/index.js",
"scripts": {
......
......@@ -43,6 +43,10 @@ export function getData (vueOptions, context) {
} catch (e) {}
}
if (!isPlainObject(data)) {
data = {}
}
Object.keys(methods).forEach(methodName => {
if (context.__lifecycle_hooks__.indexOf(methodName) === -1 && !hasOwn(data, methodName)) {
data[methodName] = methods[methodName]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册