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

build uni runtime

上级 db93a184
...@@ -345,6 +345,10 @@ function getData (vueOptions, context) { ...@@ -345,6 +345,10 @@ function getData (vueOptions, context) {
// 对 data 格式化 // 对 data 格式化
data = JSON.parse(JSON.stringify(data)); data = JSON.parse(JSON.stringify(data));
} catch (e) {} } catch (e) {}
}
if (!isPlainObject(data)) {
data = {};
} }
Object.keys(methods).forEach(methodName => { Object.keys(methods).forEach(methodName => {
......
{ {
"name": "@dcloudio/uni-app-plus", "name": "@dcloudio/uni-app-plus",
"version": "0.0.221", "version": "0.0.222",
"description": "uni-app app-plus", "description": "uni-app app-plus",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -480,6 +480,10 @@ function getData (vueOptions, context) { ...@@ -480,6 +480,10 @@ function getData (vueOptions, context) {
// 对 data 格式化 // 对 data 格式化
data = JSON.parse(JSON.stringify(data)); data = JSON.parse(JSON.stringify(data));
} catch (e) {} } catch (e) {}
}
if (!isPlainObject(data)) {
data = {};
} }
Object.keys(methods).forEach(methodName => { Object.keys(methods).forEach(methodName => {
......
{ {
"name": "@dcloudio/uni-mp-baidu", "name": "@dcloudio/uni-mp-baidu",
"version": "0.0.816", "version": "0.0.817",
"description": "uni-app mp-baidu", "description": "uni-app mp-baidu",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -525,6 +525,10 @@ function getData (vueOptions, context) { ...@@ -525,6 +525,10 @@ function getData (vueOptions, context) {
// 对 data 格式化 // 对 data 格式化
data = JSON.parse(JSON.stringify(data)); data = JSON.parse(JSON.stringify(data));
} catch (e) {} } catch (e) {}
}
if (!isPlainObject(data)) {
data = {};
} }
Object.keys(methods).forEach(methodName => { Object.keys(methods).forEach(methodName => {
......
{ {
"name": "@dcloudio/uni-mp-toutiao", "name": "@dcloudio/uni-mp-toutiao",
"version": "0.0.316", "version": "0.0.317",
"description": "uni-app mp-toutiao", "description": "uni-app mp-toutiao",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -372,6 +372,10 @@ function getData (vueOptions, context) { ...@@ -372,6 +372,10 @@ function getData (vueOptions, context) {
// 对 data 格式化 // 对 data 格式化
data = JSON.parse(JSON.stringify(data)); data = JSON.parse(JSON.stringify(data));
} catch (e) {} } catch (e) {}
}
if (!isPlainObject(data)) {
data = {};
} }
Object.keys(methods).forEach(methodName => { Object.keys(methods).forEach(methodName => {
......
{ {
"name": "@dcloudio/uni-mp-weixin", "name": "@dcloudio/uni-mp-weixin",
"version": "0.0.940", "version": "0.0.941",
"description": "uni-app mp-weixin", "description": "uni-app mp-weixin",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {
......
...@@ -41,6 +41,10 @@ export function getData (vueOptions, context) { ...@@ -41,6 +41,10 @@ export function getData (vueOptions, context) {
// 对 data 格式化 // 对 data 格式化
data = JSON.parse(JSON.stringify(data)) data = JSON.parse(JSON.stringify(data))
} catch (e) {} } catch (e) {}
}
if (!isPlainObject(data)) {
data = {}
} }
Object.keys(methods).forEach(methodName => { Object.keys(methods).forEach(methodName => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册