diff --git a/docs/.vuepress/.cache/deps/_metadata.json b/docs/.vuepress/.cache/deps/_metadata.json index 69105cb..2b40adf 100644 --- a/docs/.vuepress/.cache/deps/_metadata.json +++ b/docs/.vuepress/.cache/deps/_metadata.json @@ -1,49 +1,49 @@ { - "hash": "4b4c7fa0", + "hash": "f7a57452", "configHash": "f8279dd9", - "lockfileHash": "3f7394dc", - "browserHash": "0e9a5229", + "lockfileHash": "5c1e81b6", + "browserHash": "eae93b40", "optimized": { "@vue/devtools-api": { "src": "../../../../node_modules/@vue/devtools-api/dist/index.js", "file": "@vue_devtools-api.js", - "fileHash": "f825fa84", + "fileHash": "a62f3eb7", "needsInterop": false }, "@vuepress/shared": { "src": "../../../../node_modules/@vuepress/shared/dist/index.js", "file": "@vuepress_shared.js", - "fileHash": "9a663213", + "fileHash": "6e310932", "needsInterop": false }, "vue": { "src": "../../../../node_modules/vue/dist/vue.runtime.esm-bundler.js", "file": "vue.js", - "fileHash": "6eaeee98", + "fileHash": "c0b3edf0", "needsInterop": false }, "vue-router": { "src": "../../../../node_modules/vue-router/dist/vue-router.esm-bundler.js", "file": "vue-router.js", - "fileHash": "0f63b611", + "fileHash": "0fd347c5", "needsInterop": false }, "pinia": { "src": "../../../../node_modules/pinia/dist/pinia.mjs", "file": "pinia.js", - "fileHash": "57b29f48", - "needsInterop": false - }, - "axios": { - "src": "../../../../node_modules/axios/index.js", - "file": "axios.js", - "fileHash": "e877d26a", + "fileHash": "bb4afcbd", "needsInterop": false }, "@vueuse/core": { "src": "../../../../node_modules/@vueuse/core/index.mjs", "file": "@vueuse_core.js", - "fileHash": "e311deac", + "fileHash": "dd929d0a", + "needsInterop": false + }, + "axios": { + "src": "../../../../node_modules/axios/index.js", + "file": "axios.js", + "fileHash": "84c56bb9", "needsInterop": false } }, diff --git a/docs/.vuepress/.temp/internal/routes.js b/docs/.vuepress/.temp/internal/routes.js index 090c401..7b87833 100644 --- a/docs/.vuepress/.temp/internal/routes.js +++ b/docs/.vuepress/.temp/internal/routes.js @@ -18,20 +18,3 @@ export const routes = Object.fromEntries([ ["/posts/userServiceProcess.html", { loader: () => import(/* webpackChunkName: "posts_userServiceProcess.html" */"D:/xue/dma_handbook/docs/.vuepress/.temp/pages/posts/userServiceProcess.html.js"), meta: {"title":"用户服务流程说明"} }], ["/404.html", { loader: () => import(/* webpackChunkName: "404.html" */"D:/xue/dma_handbook/docs/.vuepress/.temp/pages/404.html.js"), meta: {"title":""} }], ]); - -if (import.meta.webpackHot) { - import.meta.webpackHot.accept() - if (__VUE_HMR_RUNTIME__.updateRoutes) { - __VUE_HMR_RUNTIME__.updateRoutes(routes) - } - if (__VUE_HMR_RUNTIME__.updateRedirects) { - __VUE_HMR_RUNTIME__.updateRedirects(redirects) - } -} - -if (import.meta.hot) { - import.meta.hot.accept(({ routes, redirects }) => { - __VUE_HMR_RUNTIME__.updateRoutes(routes) - __VUE_HMR_RUNTIME__.updateRedirects(redirects) - }) -} diff --git a/docs/.vuepress/.temp/internal/siteData.js b/docs/.vuepress/.temp/internal/siteData.js index d1023b2..10a384a 100644 --- a/docs/.vuepress/.temp/internal/siteData.js +++ b/docs/.vuepress/.temp/internal/siteData.js @@ -1,14 +1 @@ -export const siteData = JSON.parse("{\"base\":\"/go_html/dma_handbook/\",\"lang\":\"zh-CN\",\"title\":\"DMA服务人员服务操作手册\",\"description\":\"DMA服务人员服务操作手册\",\"head\":[[\"meta\",{\"name\":\"og:type\",\"content\":\"website\"}],[\"meta\",{\"property\":\"og:title\",\"content\":\"DMA服务人员操作手册\"}],[\"meta\",{\"name\":\"description\",\"content\":\"DMA服务操作手册\"}],[\"meta\",{\"property\":\"og:description\",\"content\":\"DMA服务全流程操作指南\"}],[\"meta\",{\"property\":\"og:image\",\"content\":\"https://images.health.ufutx.com/202503/12/1f227399ffc2ddbf6c58eafa80627d19.png?v=1765524291234\"}],[\"link\",{\"rel\":\"icon\",\"href\":\"https://images.health.ufutx.com/202503/12/1f227399ffc2ddbf6c58eafa80627d19.png?v=1765524291234\"}]],\"locales\":{}}") - -if (import.meta.webpackHot) { - import.meta.webpackHot.accept() - if (__VUE_HMR_RUNTIME__.updateSiteData) { - __VUE_HMR_RUNTIME__.updateSiteData(siteData) - } -} - -if (import.meta.hot) { - import.meta.hot.accept(({ siteData }) => { - __VUE_HMR_RUNTIME__.updateSiteData(siteData) - }) -} +export const siteData = JSON.parse("{\"base\":\"/go_html/dma_handbook/\",\"lang\":\"zh-CN\",\"title\":\"DMA服务人员服务操作手册\",\"description\":\"DMA服务人员服务操作手册\",\"head\":[[\"meta\",{\"name\":\"og:type\",\"content\":\"website\"}],[\"meta\",{\"property\":\"og:title\",\"content\":\"DMA服务人员操作手册\"}],[\"meta\",{\"name\":\"description\",\"content\":\"DMA服务操作手册\"}],[\"meta\",{\"property\":\"og:description\",\"content\":\"DMA服务全流程操作指南\"}],[\"meta\",{\"property\":\"og:image\",\"content\":\"https://images.health.ufutx.com/202503/12/1f227399ffc2ddbf6c58eafa80627d19.png?v=1766470876649\"}],[\"link\",{\"rel\":\"icon\",\"href\":\"https://images.health.ufutx.com/202503/12/1f227399ffc2ddbf6c58eafa80627d19.png?v=1766470876649\"}]],\"locales\":{}}") diff --git a/docs/.vuepress/.temp/internal/themeData.js b/docs/.vuepress/.temp/internal/themeData.js index 185508f..8cc5d52 100644 --- a/docs/.vuepress/.temp/internal/themeData.js +++ b/docs/.vuepress/.temp/internal/themeData.js @@ -1,14 +1 @@ export const themeData = JSON.parse("{\"navbar\":[\"/\",{\"text\":\"核心操作\",\"link\":\"/posts/overview\",\"activeMatch\":\"^/posts/overview\"},{\"text\":\"角色文档\",\"children\":[{\"text\":\"主教练\",\"link\":\"/posts/chiefCoach.html\"},{\"text\":\"副教练\",\"link\":\"/posts/assistantCoach.html\"},{\"text\":\"客服\",\"link\":\"/posts/service.html\"},{\"text\":\"健康管理师\",\"link\":\"/posts/teacher.html\"}]},{\"text\":\"操作指南\",\"children\":[{\"text\":\"分润提现\",\"link\":\"/posts/shareBenefit\"},{\"text\":\"APP相关\",\"link\":\"/posts/appCorrelation\"},{\"text\":\"DMA模块\",\"link\":\"/posts/DMAModule\"},{\"text\":\"考试预约\",\"link\":\"/posts/examReservation\"},{\"text\":\"代理商\",\"link\":\"/posts/agent\"},{\"text\":\"用户服务流程\",\"link\":\"/posts/userServiceProcess\"}]},{\"text\":\"常见问题\",\"link\":\"/posts/helpCenter\"},{\"text\":\"更新日志\",\"link\":\"/posts/changelog\"}],\"locales\":{\"/\":{\"selectLanguageName\":\"English\"}},\"colorMode\":\"auto\",\"colorModeSwitch\":true,\"logo\":null,\"repo\":null,\"selectLanguageText\":\"Languages\",\"selectLanguageAriaLabel\":\"Select language\",\"sidebarDepth\":2,\"editLink\":true,\"editLinkText\":\"Edit this page\",\"lastUpdated\":true,\"contributors\":true,\"contributorsText\":\"Contributors\",\"notFound\":[\"There's nothing here.\",\"How did we get here?\",\"That's a Four-Oh-Four.\",\"Looks like we've got some broken links.\"],\"backToHome\":\"Take me home\",\"openInNewWindow\":\"open in new window\",\"toggleColorMode\":\"toggle color mode\",\"toggleSidebar\":\"toggle sidebar\"}") - -if (import.meta.webpackHot) { - import.meta.webpackHot.accept() - if (__VUE_HMR_RUNTIME__.updateThemeData) { - __VUE_HMR_RUNTIME__.updateThemeData(themeData) - } -} - -if (import.meta.hot) { - import.meta.hot.accept(({ themeData }) => { - __VUE_HMR_RUNTIME__.updateThemeData(themeData) - }) -} diff --git a/docs/.vuepress/.temp/pages/404.html.js b/docs/.vuepress/.temp/pages/404.html.js index 659ab34..280f0a5 100644 --- a/docs/.vuepress/.temp/pages/404.html.js +++ b/docs/.vuepress/.temp/pages/404.html.js @@ -1,16 +1,3 @@ import comp from "D:/xue/dma_handbook/docs/.vuepress/.temp/pages/404.html.vue" const data = JSON.parse("{\"path\":\"/404.html\",\"title\":\"\",\"lang\":\"zh-CN\",\"frontmatter\":{\"layout\":\"NotFound\"},\"headers\":[],\"git\":{},\"filePathRelative\":null}") export { comp, data } - -if (import.meta.webpackHot) { - import.meta.webpackHot.accept() - if (__VUE_HMR_RUNTIME__.updatePageData) { - __VUE_HMR_RUNTIME__.updatePageData(data) - } -} - -if (import.meta.hot) { - import.meta.hot.accept(({ data }) => { - __VUE_HMR_RUNTIME__.updatePageData(data) - }) -} diff --git a/docs/.vuepress/.temp/pages/index.html.js b/docs/.vuepress/.temp/pages/index.html.js index 0c90a48..096d3a1 100644 --- a/docs/.vuepress/.temp/pages/index.html.js +++ b/docs/.vuepress/.temp/pages/index.html.js @@ -1,16 +1,3 @@ import comp from "D:/xue/dma_handbook/docs/.vuepress/.temp/pages/index.html.vue" const data = JSON.parse("{\"path\":\"/\",\"title\":\"首页\",\"lang\":\"zh-CN\",\"frontmatter\":{},\"headers\":[{\"level\":2,\"title\":\"一、手册目的\",\"slug\":\"一、手册目的\",\"link\":\"#一、手册目的\",\"children\":[]},{\"level\":2,\"title\":\"二、适用范围\",\"slug\":\"二、适用范围\",\"link\":\"#二、适用范围\",\"children\":[]},{\"level\":2,\"title\":\"三、核心原则\",\"slug\":\"三、核心原则\",\"link\":\"#三、核心原则\",\"children\":[]},{\"level\":2,\"title\":\"四、岗位权责\",\"slug\":\"四、岗位权责\",\"link\":\"#四、岗位权责\",\"children\":[{\"level\":3,\"title\":\"(一)行政\",\"slug\":\"一-行政\",\"link\":\"#一-行政\",\"children\":[]},{\"level\":3,\"title\":\"(二)客服\",\"slug\":\"二-客服\",\"link\":\"#二-客服\",\"children\":[]},{\"level\":3,\"title\":\"(三)健康管理师\",\"slug\":\"三-健康管理师\",\"link\":\"#三-健康管理师\",\"children\":[]},{\"level\":3,\"title\":\"(四)系统审核员\",\"slug\":\"四-系统审核员\",\"link\":\"#四-系统审核员\",\"children\":[]},{\"level\":3,\"title\":\"(五)主教练、副教练\",\"slug\":\"五-主教练、副教练\",\"link\":\"#五-主教练、副教练\",\"children\":[]}]},{\"level\":2,\"title\":\"五、服务规范与沟通话术\",\"slug\":\"五、服务规范与沟通话术\",\"link\":\"#五、服务规范与沟通话术\",\"children\":[{\"level\":3,\"title\":\"(一)仪容仪表规范\",\"slug\":\"一-仪容仪表规范\",\"link\":\"#一-仪容仪表规范\",\"children\":[]},{\"level\":3,\"title\":\"(二)沟通话术规范\",\"slug\":\"二-沟通话术规范\",\"link\":\"#二-沟通话术规范\",\"children\":[]}]},{\"level\":2,\"title\":\"六、系统工具使用说明\",\"slug\":\"六、系统工具使用说明\",\"link\":\"#六、系统工具使用说明\",\"children\":[{\"level\":3,\"title\":\"(一)后台系统常用功能\",\"slug\":\"一-后台系统常用功能\",\"link\":\"#一-后台系统常用功能\",\"children\":[]},{\"level\":3,\"title\":\"(二)群聊管理工具使用\",\"slug\":\"二-群聊管理工具使用\",\"link\":\"#二-群聊管理工具使用\",\"children\":[]}]},{\"level\":2,\"title\":\"七、考核与反馈机制\",\"slug\":\"七、考核与反馈机制\",\"link\":\"#七、考核与反馈机制\",\"children\":[{\"level\":3,\"title\":\"(一)考核指标\",\"slug\":\"一-考核指标\",\"link\":\"#一-考核指标\",\"children\":[]},{\"level\":3,\"title\":\"(二)反馈渠道\",\"slug\":\"二-反馈渠道\",\"link\":\"#二-反馈渠道\",\"children\":[]}]},{\"level\":2,\"title\":\"八、更新日志\",\"slug\":\"八、更新日志\",\"link\":\"#八、更新日志\",\"children\":[]},{\"level\":2,\"title\":\"附录:流程节点时效汇总表\",\"slug\":\"附录-流程节点时效汇总表\",\"link\":\"#附录-流程节点时效汇总表\",\"children\":[]}],\"git\":{\"updatedTime\":1762222814000,\"contributors\":[{\"name\":\"lanzhihui\",\"username\":\"\",\"email\":\"503792708@qq.com\",\"commits\":3}],\"changelog\":[{\"hash\":\"169908d04e7a4ef15ffea1d8ca58004c9c7451c4\",\"time\":1762222814000,\"email\":\"503792708@qq.com\",\"author\":\"lanzhihui\",\"message\":\"update\"},{\"hash\":\"7799842e4c8bfd3bbd24d9cbc89c8ac4c28c918b\",\"time\":1761103662000,\"email\":\"503792708@qq.com\",\"author\":\"lanzhihui\",\"message\":\"更新\"},{\"hash\":\"e73bbe09086600f49aec344301695549746ba3c4\",\"time\":1759135896000,\"email\":\"503792708@qq.com\",\"author\":\"lanzhihui\",\"message\":\"初始化\"}]},\"filePathRelative\":\"README.md\"}") export { comp, data } - -if (import.meta.webpackHot) { - import.meta.webpackHot.accept() - if (__VUE_HMR_RUNTIME__.updatePageData) { - __VUE_HMR_RUNTIME__.updatePageData(data) - } -} - -if (import.meta.hot) { - import.meta.hot.accept(({ data }) => { - __VUE_HMR_RUNTIME__.updatePageData(data) - }) -} diff --git a/docs/.vuepress/.temp/pages/index.html.vue b/docs/.vuepress/.temp/pages/index.html.vue index 0180121..9c1e926 100644 --- a/docs/.vuepress/.temp/pages/index.html.vue +++ b/docs/.vuepress/.temp/pages/index.html.vue @@ -1,10 +1,10 @@ diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 82a8be4..ef21325 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -1,11 +1,16 @@ import { viteBundler } from '@vuepress/bundler-vite' import { defaultTheme } from '@vuepress/theme-default' import { defineUserConfig } from 'vuepress' +import fs from 'fs-extra' +import path from 'path' // import * as path from "path"; // const path = require("path"); // import {registerComponentsPlugin} from '@vuepress/plugin-register-components' // const { registerComponentsPlugin } = require('@vuepress/plugin-register-components'); +// 配置常量 +const SITE_BASE = '/go_html/dma_handbook/' +const CDN_BASE = 'https://images.health.ufutx.com/dp' export default defineUserConfig({ // ...其他配置... @@ -27,7 +32,7 @@ export default defineUserConfig({ // vite bundler options here viteOptions: { // ✅ 关键:设置资源的公共基础路径(CDN 或子路径) - base: 'https://images.health.ufutx.com/dp/', + // base: 'https://images.health.ufutx.com/dp/', build: { // 可选:自定义 assets 目录名(默认是 assets) @@ -227,7 +232,7 @@ export default defineUserConfig({ lang:'zh-CN', title:'DMA服务人员服务操作手册', description: 'DMA服务人员服务操作手册', - base:'/go_html/dma_handbook/', + base:SITE_BASE, image:'https://images.health.ufutx.com/202503/12/1f227399ffc2ddbf6c58eafa80627d19.png', plugins: [ ['@vuepress/plugin-medium-zoom', { @@ -260,5 +265,37 @@ export default defineUserConfig({ // publishedAt: $page => $page.frontmatter.date && new Date($page.frontmatter.date), // modifiedAt: $page => $page.lastUpdated && new Date($page.lastUpdated), // }] - ] + ], + + // ✅ 关键:使用 onGenerated 钩子(构建后处理) + async onGenerated (app) { + const outDir = app.options.dest // 默认是 .vuepress/dist + const htmlFiles = await fs.readdir(outDir) + + for (const file of htmlFiles) { + if (!file.endsWith('.html')) continue + + const filePath = path.join(outDir, file) + let content = await fs.readFile(filePath, 'utf-8') + + // 替换资源路径 + const assetPrefix = SITE_BASE + 'assets/' + const cdnPrefix = CDN_BASE + '/assets/' + + // 替换