diff --git a/build/vite/plugin/html.ts b/build/vite/plugin/html.ts index 6af034a..e0a7351 100644 --- a/build/vite/plugin/html.ts +++ b/build/vite/plugin/html.ts @@ -6,6 +6,7 @@ import type { PluginOption } from 'vite'; import { createHtmlPlugin } from 'vite-plugin-html'; import pkg from '../../../package.json'; import { GLOB_CONFIG_FILE_NAME } from '../../constant'; +import {isHJ} from "/@/utils/is"; export function configHtmlPlugin(env: ViteEnv, isBuild: boolean) { const { VITE_GLOB_APP_TITLE, VITE_PUBLIC_PATH } = env; @@ -21,7 +22,9 @@ export function configHtmlPlugin(env: ViteEnv, isBuild: boolean) { inject: { // Inject data into ejs template data: { - title: VITE_GLOB_APP_TITLE, + title: VITE_GLOB_APP_TITLE, //这里可改LOGDING文字 + titleHJ: '河津市农业面源污染在线监测平台', //这里可改LOGDING文字 + // title: VITE_GLOB_APP_TITLE, //这里可改LOGDING文字 }, // Embed the generated app.config.js file tags: isBuild diff --git a/index.html b/index.html index c80afd8..ec84a19 100644 --- a/index.html +++ b/index.html @@ -161,10 +161,17 @@