| | |
| | | apiUrl: 'http://36.213.180.217:9501/admin-api', |
| | | }, |
| | | JHHG: { |
| | | name: '宁夏九泓化工科技有限公司', |
| | | name: '宁夏九泓化工', |
| | | logo: '/logos/TEST.png', |
| | | favicon: '/logos/TEST.ico', |
| | | apiUrl: 'http://42.63.70.90:9001/admin-api', |
| | | }, |
| | | YZFX: { |
| | | name: '宁夏英泽防锈新材料有限公司', |
| | | logo: '/logos/TEST.png', |
| | | favicon: '/logos/TEST.ico', |
| | | name: '宁夏英泽除锈', |
| | | logo: '/logos/YZFXLogo.png', |
| | | favicon: '/logos/YZFXLogo.ico', |
| | | apiUrl: 'http://42.63.70.231:9001/admin-api', |
| | | }, |
| | | }; |
| | |
| | | if (preferences.app.dynamicTitle) { |
| | | const routeTitle = router.currentRoute.value.meta?.title; |
| | | const pageTitle = |
| | | (routeTitle ? `${$t(routeTitle)} - ` : '') + preferences.app.name; |
| | | (routeTitle ? `${$t(routeTitle)} - ` : '') + |
| | | preferences.copyright.companyName; |
| | | useTitle(pageTitle); |
| | | } |
| | | }); |
| | |
| | | |
| | | declare const __APP_LOGO__: string; |
| | | |
| | | const appName = computed(() => preferences.app.name); |
| | | const appName = computed(() => preferences.copyright.companyName); |
| | | const logo = computed(() => __APP_LOGO__ || preferences.logo.source); |
| | | const logoDark = computed(() => preferences.logo.sourceDark); |
| | | </script> |
| | |
| | | |
| | | declare const __APP_LOGO__: string; |
| | | declare const __APP_FAVICON__: string; |
| | | declare const __APP_NAME__: string; |
| | | |
| | | /** |
| | | * 应用初始化完成之后再进行页面加载渲染 |
| | |
| | | if (__APP_LOGO__) { |
| | | preferencesManager.updatePreferences({ logo: { source: __APP_LOGO__ } }); |
| | | } |
| | | // 强制覆盖公司名称,绕过 localStorage 缓存 |
| | | if (__APP_NAME__) { |
| | | preferencesManager.updatePreferences({ |
| | | app: { name: __APP_NAME__ }, |
| | | copyright: { companyName: __APP_NAME__ }, |
| | | }); |
| | | } |
| | | if (__APP_FAVICON__) { |
| | | const link = document.querySelector('link[rel="icon"]'); |
| | | if (link) { |
| | |
| | | :collapsed="logoCollapsed" |
| | | :src="preferences.logo.source" |
| | | :src-dark="preferences.logo.sourceDark" |
| | | :text="preferences.app.name" |
| | | :text="preferences.copyright.companyName" |
| | | :theme="logoTheme" |
| | | @click="clickLogo" |
| | | > |
| | |
| | | <VbenLogo |
| | | v-if="preferences.logo.enable" |
| | | :fit="preferences.logo.fit" |
| | | :text="preferences.app.name" |
| | | :text="preferences.copyright.companyName" |
| | | :theme="sidebarThemeSub" |
| | | > |
| | | <template v-if="$slots['logo-text']" #text> |
| | |
| | | } from './packages/preferences/src'; |
| | | |
| | | declare const __APP_LOGO__: string; |
| | | declare const __APP_NAME__: string; |
| | | |
| | | interface WebAntdPreferencesExtension { |
| | | defaultTableSize: number; |
| | |
| | | app: { |
| | | /** 后端路由模式 */ |
| | | accessMode: 'backend', |
| | | name: import.meta.env.VITE_APP_TITLE, |
| | | name: __APP_NAME__ || import.meta.env.VITE_APP_TITLE, |
| | | enableRefreshToken: true, |
| | | }, |
| | | footer: { |
| | |
| | | fixed: false, |
| | | }, |
| | | copyright: { |
| | | companyName: import.meta.env.VITE_APP_TITLE, |
| | | companyName: __APP_NAME__ || import.meta.env.VITE_APP_TITLE, |
| | | companySiteLink: '#', |
| | | }, |
| | | logo: { |
| | |
| | | declare const __APP_LOGO__: string; |
| | | declare const __APP_FAVICON__: string; |
| | | declare const __APP_NAME__: string; |
| | |
| | | [() => conversationStore.getTotalUnreadCount, () => route.fullPath], |
| | | ([count]) => { |
| | | nextTick(() => { |
| | | const base = preferences.app.name |
| | | const base = preferences.copyright.companyName |
| | | document.title = count > 0 ? `(${count > 99 ? '99+' : count}条未读)${base}` : base |
| | | }) |
| | | }, |