diff --git a/components.d.ts b/components.d.ts index 4bc87cd..810521d 100644 --- a/components.d.ts +++ b/components.d.ts @@ -9,7 +9,12 @@ export {} declare module 'vue' { export interface GlobalComponents { ElButton: typeof import('element-plus/es')['ElButton'] + ElForm: typeof import('element-plus/es')['ElForm'] + ElFormItem: typeof import('element-plus/es')['ElFormItem'] + ElInput: typeof import('element-plus/es')['ElInput'] + ElOption: typeof import('element-plus/es')['ElOption'] ElPagination: typeof import('element-plus/es')['ElPagination'] + ElSelect: typeof import('element-plus/es')['ElSelect'] ElTabPane: typeof import('element-plus/es')['ElTabPane'] ElTabs: typeof import('element-plus/es')['ElTabs'] Footer: typeof import('./src/components/Footer.vue')['default'] diff --git a/src/main.ts b/src/main.ts index 1eac812..f658b02 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,13 +9,13 @@ import '@/styles/global.less' // 引入全局样式 // 修正:明确 meta.title 的类型为 string // 引入 element-plus 核心库 -import ElementPlus from 'element-plus' +// import ElementPlus from 'element-plus' // 引入 element-plus 全局样式(可根据需求选择是否自定义主题,这里先引入默认样式) -// import 'element-plus/dist/index.css' +import 'element-plus/dist/index.css' // 如果你需要使用 Element Plus 提供的国际化(i18n)功能,还需引入对应的语言包,比如中文 // 修正:使用正确的语言包路径(从 es/locale/lang 导入) -import zhCn from 'element-plus/es/locale/lang/zh-cn' +// import zhCn from 'element-plus/es/locale/lang/zh-cn' // 使用 ElementPlus 插件,并配置国际化等选项(这里以配置中文为例) declare module 'vue-router' { interface RouteMeta { @@ -33,9 +33,9 @@ export const createApp = ViteSSG( ctx => { // 安装 i18n 插件 ctx.app.use(i18n) - ctx.app.use(ElementPlus, { - locale: zhCn - }) + // ctx.app.use(ElementPlus, { + // locale: zhCn + // }) // 路由守卫:设置页面标题 ctx.router.beforeEach((to, _from, next) => { diff --git a/src/router/routes.ts b/src/router/routes.ts index 9882728..a832c86 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -17,6 +17,7 @@ const routes: RouteRecordRaw[] = [ children: [ { path: '', name: 'Home', component: () => import('@/views/Home/Home.vue') }, { path: 'news', name: 'News', component: () => import('@/views/News/News.vue') }, + { path: 'news/:id', name: 'ArticleDetail', component: () => import('@/views/News/ArticleDetail.vue') }, { path: 'network', name: 'Network', component: () => import('@/views/Network/Network.vue') }, { path: 'dating', name: 'Dating', component: () => import('@/views/Dating/Dating.vue') }, { path: 'app', name: 'App', component: () => import('@/views/App/App.vue') }, diff --git a/src/views/About/About.vue b/src/views/About/About.vue index c27af0e..e1fa557 100644 --- a/src/views/About/About.vue +++ b/src/views/About/About.vue @@ -2,10 +2,17 @@
• 优先关注、保障员工的身心健康
-• 持续输出健康理念与服务,帮助用户预防疾病
-• 积极推动行业进步,促进全民健康意识提升
+
+ {{ tab.title }}
+• {{ line }}
+
- • 以提升人类生命质量为核心使命
-• 持续投入研发,推动AI健康技术突破
-• 让健康管理触达每一个人
-
- • 建立创新奖励机制,支持员工突破
-• 与全球科研机构合作,探索前沿技术
-• 持续优化产品,引领行业创新方向
-
- • 为员工提供丰富的培训与晋升机会
-• 助力合作伙伴成长,实现生态共赢
-• 推动行业人才培养,输出专业标准
-
- • 倡导开放协作,打破部门壁垒
-• 以结果为导向,高效执行
-• 相互支持,共同攻克行业难题
-
- • 坚持长期主义,深耕健康领域
-• 以用户价值为核心,拒绝短视行为
-• 永葆创业激情,持续突破自我
-
- 成立至今获得多项荣誉
欢迎健康产业链企业与我们洽谈合作,共创产业新价值
-+ {{ props.device.desc }} +
+