车间能级提升-智能设备管理系统
feat(web-antd): 全局注册 ant-design-vue 组件- 在 bootstrap.ts 中导入并注册 Antd
- 此修改确保 ant-design-vue 组件可在整个应用中使用
已修改1个文件
4 ■■■■ 文件已修改
eims-ui/apps/web-antd/src/bootstrap.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
eims-ui/apps/web-antd/src/bootstrap.ts
@@ -14,6 +14,7 @@
import { initComponentAdapter } from './adapter/component';
import App from './app.vue';
import { router } from './router';
import Antd from 'ant-design-vue';
async function bootstrap(namespace: string) {
  // 初始化组件适配器
@@ -36,6 +37,9 @@
  // 配置路由及路由守卫
  app.use(router);
  // 全局注册 antd 组件
  app.use(Antd);
  // 动态更新标题
  watchEffect(() => {
    if (preferences.app.dynamicTitle) {