Commit 4d6d677e authored by rockyl's avatar rockyl

修复编译结果没有解构的问题

parent b2391c03
...@@ -83,12 +83,12 @@ async function packData(data, {debug, packedAssets, getPackages}) { ...@@ -83,12 +83,12 @@ async function packData(data, {debug, packedAssets, getPackages}) {
if (view.store) { if (view.store) {
let {exp, computed} = view.store; let {exp, computed} = view.store;
if (exp) { if (exp) {
view.store.exp = await compile(exp); view.store.exp = (await compile(exp)).code;
} }
if (computed) { if (computed) {
for (let item of computed) { for (let item of computed) {
if (item.script) { if (item.script) {
item.script = await compile(item.script); item.script = (await compile(item.script)).code;
} }
} }
} }
......
This diff is collapsed.
...@@ -89,12 +89,12 @@ async function packData(data, {debug, packedAssets, getPackages}) { ...@@ -89,12 +89,12 @@ async function packData(data, {debug, packedAssets, getPackages}) {
if (view.store) { if (view.store) {
let {exp, computed} = view.store; let {exp, computed} = view.store;
if (exp) { if (exp) {
view.store.exp = await compile(exp); view.store.exp = (await compile(exp)).code;
} }
if (computed) { if (computed) {
for (let item of computed) { for (let item of computed) {
if (item.script) { if (item.script) {
item.script = await compile(item.script); item.script = (await compile(item.script)).code;
} }
} }
} }
......
This diff is collapsed.
...@@ -87,12 +87,12 @@ ...@@ -87,12 +87,12 @@
if (view.store) { if (view.store) {
let {exp, computed} = view.store; let {exp, computed} = view.store;
if (exp) { if (exp) {
view.store.exp = await compile(exp); view.store.exp = (await compile(exp)).code;
} }
if (computed) { if (computed) {
for (let item of computed) { for (let item of computed) {
if (item.script) { if (item.script) {
item.script = await compile(item.script); item.script = (await compile(item.script)).code;
} }
} }
} }
......
This diff is collapsed.
...@@ -57,12 +57,12 @@ async function packData(data, {debug, packedAssets, getPackages}) { ...@@ -57,12 +57,12 @@ async function packData(data, {debug, packedAssets, getPackages}) {
if (view.store) { if (view.store) {
let {exp, computed} = view.store; let {exp, computed} = view.store;
if (exp) { if (exp) {
view.store.exp = await compile(exp); view.store.exp = (await compile(exp)).code;
} }
if (computed) { if (computed) {
for (let item of computed) { for (let item of computed) {
if (item.script) { if (item.script) {
item.script = await compile(item.script); item.script = (await compile(item.script)).code;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment