swico 0.6.2-beta6 → 0.6.3
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/package.json
CHANGED
|
@@ -49,9 +49,6 @@ var App = function () {
|
|
|
49
49
|
window.location.replace("".concat(config_1.routerBase));
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
window.Swico = {
|
|
53
|
-
history: history_1.history
|
|
54
|
-
};
|
|
55
52
|
return (react_1.default.createElement(history_1.HistoryRouter, { basename: config_1.routerBase, history: originalHistory },
|
|
56
53
|
react_1.default.createElement(react_router_dom_1.Routes, null,
|
|
57
54
|
react_1.default.createElement(react_router_dom_1.Route, { element: react_1.default.createElement(layout_1.default, null), path: '' }, renderChildrenRouteList(routes_1.default, '')))));
|
|
@@ -11,10 +11,7 @@ var global_1 = __importDefault(require("../../global"));
|
|
|
11
11
|
var history_1 = require("./history");
|
|
12
12
|
var router = (0, history_1.getRouter)();
|
|
13
13
|
var app = (0, vue_1.createApp)(Container_1.default);
|
|
14
|
-
var Swico = { history: null };
|
|
15
|
-
Swico.history = history_1.history;
|
|
16
14
|
app.component('Layout', Layout_1.default);
|
|
17
15
|
app.use(router);
|
|
18
|
-
window.Swico = Swico;
|
|
19
16
|
(_a = global_1.default === null || global_1.default === void 0 ? void 0 : global_1.default.onInit) === null || _a === void 0 ? void 0 : _a.call(global_1.default, app, router);
|
|
20
17
|
app.mount('#root');
|