修改
This commit is contained in:
@@ -5,27 +5,13 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="icon" href="/favicon.ico">
|
||||
<title>招标管理系统</title>
|
||||
|
||||
|
||||
<!-- 引入 shared 模块的样式(Module Federation 远程模块样式) -->
|
||||
<link rel="stylesheet" href="/shared/assets/shared-styles.css">
|
||||
|
||||
<!-- 加载运行时配置(必须在其他脚本之前加载) -->
|
||||
<script src="/app-config.js"></script>
|
||||
<!-- <script src="/app-config.local.js"></script> -->
|
||||
|
||||
<!-- Import Maps 配置 - 引用共享模块 -->
|
||||
<script type="importmap">
|
||||
{
|
||||
"imports": {
|
||||
"@shared/components": "http://localhost:7000/shared/components.js",
|
||||
"@shared/utils": "http://localhost:7000/shared/utils.js",
|
||||
"@shared/api": "http://localhost:7000/shared/api.js",
|
||||
"@shared/composables": "http://localhost:7000/shared/composables.js",
|
||||
"@shared/types": "http://localhost:7000/shared/types.js"
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- 预加载关键模块 -->
|
||||
<link rel="modulepreload" href="http://localhost:7000/shared/components.js">
|
||||
<link rel="modulepreload" href="http://localhost:7000/shared/utils.js">
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
||||
@@ -3,8 +3,8 @@ import { createPinia } from 'pinia'
|
||||
import ElementPlus from 'element-plus'
|
||||
import 'element-plus/dist/index.css'
|
||||
|
||||
// 导入 shared 的全局样式(Module Federation 远程模块样式)
|
||||
import 'shared/styles'
|
||||
// 注意:shared 的样式现在通过 index.html 中的 <link> 标签加载
|
||||
// 不再需要在这里导入:import 'shared/styles'
|
||||
|
||||
import App from './App.vue'
|
||||
import router from './router/'
|
||||
|
||||
Reference in New Issue
Block a user