@soleil-se/app-util 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -1
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ export function renderVue(name, data, noScript) {
|
|
|
25
25
|
var options = Object.assign({}, {webapp: app, isOffline: isOffline}, data);
|
|
26
26
|
|
|
27
27
|
var vueUri = getResourceUri('vue/index.js');
|
|
28
|
-
var html = "<!-- Generated by WebappUtil.renderVue() -->\n<div data-vue-name=\"" + name + "\" data-vue-portlet=\"" + (app.portletId) + "\">" + noScript + "</div>\n<script src=\"" + vueUri + "\"></script>\n<script
|
|
28
|
+
var html = "<!-- Generated by WebappUtil.renderVue() -->\n<div data-vue-name=\"" + name + "\" data-vue-portlet=\"" + (app.portletId) + "\">" + noScript + "</div>\n<script src=\"" + vueUri + "\"></script>\n<script>\n vueApps['" + name + "'].render('" + name + "', '" + (app.portletId) + "', " + (JSON.stringify(options)) + ");\n</script>";
|
|
29
29
|
return html;
|
|
30
30
|
}
|
|
31
31
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -24,7 +24,7 @@ export function renderVue(name, data, noScript = '') {
|
|
|
24
24
|
const html = `<!-- Generated by WebappUtil.renderVue() -->
|
|
25
25
|
<div data-vue-name="${name}" data-vue-portlet="${app.portletId}">${noScript}</div>
|
|
26
26
|
<script src="${vueUri}"></script>
|
|
27
|
-
<script
|
|
27
|
+
<script>
|
|
28
28
|
vueApps['${name}'].render('${name}', '${app.portletId}', ${JSON.stringify(options)});
|
|
29
29
|
</script>`;
|
|
30
30
|
return html;
|