Ver código fonte

修改虚拟路径及样式

plg 1 semana atrás
pai
commit
4f14a11069

+ 5 - 0
index.html

@@ -3,6 +3,11 @@
 
 <head>
   <meta charset="UTF-8">
+
+  <meta http-equiv="pragma" content="no-cache">
+  <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
+  <meta http-equiv="expires" content="0">
+
   <link rel="icon" href="/favicon.png">
   <meta name="viewport" content="width=device-width, initial-scale=1.0">
   <title>消防救援官兵心理健康测评系统</title>

BIN
src/assets/home/group_slide_1.png


BIN
src/assets/home/xf1.png


+ 1 - 1
src/router/index.ts

@@ -132,7 +132,7 @@ const routes = [
 ]
 const router = createRouter({
   // history: createWebHistory(import.meta.env.BASE_URL),
-  history: createWebHistory("/userFireBrigade/"),
+  history: createWebHistory("/fireBrigade/"),
   //highLevelIntellectual
   // history: createWebHistory('/pc/'),
   routes

+ 1 - 1
src/views/HomeView.vue

@@ -398,7 +398,7 @@ body {
       padding: 20px;
       color: #818996;
       font-size: 16px;
-      line-height: 24px;
+      line-height: 28px;
 
       // margin-top: 10px;
     }

+ 5 - 5
vite.config.ts

@@ -3,7 +3,7 @@ import { fileURLToPath, URL } from 'node:url'
 import { defineConfig } from 'vite'
 import vue from '@vitejs/plugin-vue'
 import vueJsx from '@vitejs/plugin-vue-jsx'
-
+const Timestamp = new Date().getTime();
 // https://vitejs.dev/config/
 export default defineConfig({
   // base: '/highLevelIntellectual/',
@@ -18,13 +18,13 @@ export default defineConfig({
           }
         },
         // 用于从入口点创建的块的打包输出格式[name]表示文件名,[hash]表示该文件内容hash值
-        entryFileNames: 'assets/js/[name].[hash].js', // 用于命名代码拆分时创建的共享块的输出命名
-        chunkFileNames: 'assets/js/[name].[hash].js', // 用于输出静态资源的命名,[ext]表示文件扩展名
-        assetFileNames: 'assets/[ext]/[name].[hash].[ext]'
+        entryFileNames: `assets/js/[name].[hash].${Timestamp}.js`, // 用于命名代码拆分时创建的共享块的输出命名
+        chunkFileNames: `assets/js/[name].[hash].${Timestamp}.js`, // 用于输出静态资源的命名,[ext]表示文件扩展名
+        assetFileNames: `assets/[ext]/[name].[hash].${Timestamp}.[ext]`
       }
     }
   },
-  base: '/userFireBrigade/',
+  base: '/fireBrigade/',
   css: {
     preprocessorOptions: {
       scss: {