fix(web_view): 修正 export default 结构
build error: Unexpected token, expected "," (352:0)
原因:
1. 在 onLoad 内部错误地多写了 `methods: {` 块
2. 末尾有一个多余的 `}`
修复:
- 删除错位的 `methods: {` 块
- _resolveAppScene 和 _initWebView 现在作为 export default
顶层方法(Vue 2 Options API 支持)
- 删除末尾多余的 `}`
- 转换回 CRLF 行尾(HBuilderX 期望)
CRMEB 应能正常 HBuilderX 编译。
This commit is contained in:
@@ -120,7 +120,6 @@ export default {
|
||||
|
||||
this._initWebView(option);
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 太阳码 scene 解析:调 box_app /api/mp/apps 找 url,找到后注入到 option.url
|
||||
* 然后调用 _initWebView(option) 走标准 web_view 加载流程
|
||||
@@ -160,7 +159,6 @@ export default {
|
||||
this._initWebView(option);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
_initWebView(option) {
|
||||
try {
|
||||
@@ -348,7 +346,6 @@ export default {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user