swico 2.6.0-beta.3 → 2.6.0-beta.4
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
package/src/command/start.js
CHANGED
|
@@ -79,7 +79,7 @@ const restartServer = () => {
|
|
|
79
79
|
const result = cross_spawn_1.default.sync('cross-env', [
|
|
80
80
|
'SWICO_DEV_RESTART=true',
|
|
81
81
|
`SWICO_DEV_PORT=${currentPort}`,
|
|
82
|
-
`SWICO_DEV_ROUTER_BASE
|
|
82
|
+
`SWICO_DEV_ROUTER_BASE=${currentRouterBase}`,
|
|
83
83
|
'swico',
|
|
84
84
|
'start'
|
|
85
85
|
], {
|
|
@@ -20,15 +20,20 @@ const Container = (0, vue_1.defineComponent)({
|
|
|
20
20
|
return { error };
|
|
21
21
|
},
|
|
22
22
|
template: ' <Layout v-if="!error">\n' +
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'
|
|
23
|
+
' <RouterView v-slot="{ Component }">\n' +
|
|
24
|
+
' <template v-if="Component">\n' +
|
|
25
|
+
' <Suspense>\n' +
|
|
26
|
+
' <!-- 主要内容 -->\n' +
|
|
27
|
+
' <component :is="Component"></component>\n' +
|
|
28
|
+
'\n' +
|
|
29
|
+
' <!-- 加载中状态 -->\n' +
|
|
30
|
+
' <template #fallback>\n' +
|
|
31
|
+
' <Loading />\n' +
|
|
32
|
+
' </template>\n' +
|
|
33
|
+
' </Suspense>\n' +
|
|
34
|
+
' </template>\n' +
|
|
35
|
+
' </RouterView>\n' +
|
|
36
|
+
' </Layout>'
|
|
32
37
|
});
|
|
33
38
|
const router = (0, history_1.getRouter)();
|
|
34
39
|
const app = (0, vue_1.createApp)(Container);
|