NewLife/cube-front

调整Cube-cube/v1路由
Yann authored at 2025-07-11 00:04:45
baf012a
Tree
1 Parent(s) f302aa8
Summary: 2 changed files with 2 additions and 17 deletions.
Modified +1 -3
Modified +1 -14
Modified +1 -3
diff --git a/apps/cube-cube/src/main.ts b/apps/cube-cube/src/main.ts
index db3923b..02e4efb 100644
--- a/apps/cube-cube/src/main.ts
+++ b/apps/cube-cube/src/main.ts
@@ -1,3 +1 @@
-import routes from './routes';
-
-export { routes };
+export { default as routes } from './routes';
Modified +1 -14
diff --git a/apps/cube-v1/src/main.ts b/apps/cube-v1/src/main.ts
index 6616298..02e4efb 100644
--- a/apps/cube-v1/src/main.ts
+++ b/apps/cube-v1/src/main.ts
@@ -1,14 +1 @@
-import { createApp } from 'vue';
-import { createRouter, createWebHistory } from 'vue-router';
-import '@core/initApp';
-import App from '@core/App.vue';
-import routes from './routes/index';
-
-const router = createRouter({
-  history: createWebHistory(),
-  routes,
-});
-
-const app = createApp(App);
-app.use(router);
-app.mount('#app');
+export { default as routes } from './routes';