diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..96b71d8
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,29 @@
+# Logs
+logs
+*.log
+run.out
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+node_modules
+.DS_Store
+dist
+dist-ssr
+coverage
+*.local
+
+/cypress/videos/
+/cypress/screenshots/
+
+# Editor directories and files
+.vscode/*
+!.vscode/extensions.json
+.idea
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
diff --git a/index.html b/index.html
index d05b8c6..37781d1 100644
--- a/index.html
+++ b/index.html
@@ -2,7 +2,7 @@
-
+
LionWebsite
diff --git a/llm_readme.md b/llm_readme.md
index 9ff6e95..a795b40 100644
--- a/llm_readme.md
+++ b/llm_readme.md
@@ -198,4 +198,4 @@ npm run preview # 预览构建产物
2. `state.websocket` 在 Vuex 中初始化为 `{}` 而非 `null`,检查方式不够严谨
3. `getShortname` 函数逻辑复杂且有多处副作用,可读性较低
4. 部分错误处理较简略(如 `queryGalleries` 中无网络错误处理)
-5. `store/index.js` 中 action 使用全局 `state` 变量(而非 `context.state`),可能导致作用域混淆
\ No newline at end of file
+5. `store/index.js` 中 action 使用全局 `state` 变量(而非 `context.state`),可能导致作用域混淆
diff --git a/vite.config.js b/vite.config.js
index 7a889c8..e340313 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -2,8 +2,21 @@ import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
export default defineConfig({
+ // Nginx 从 /asserts/index/ 提供桌面端静态文件;部署文件名保持固定,
+ // 以便根页面和现有静态路由无需随每次构建改名。
+ base: '/asserts/index/',
+ assetsDir: '',
plugins: [vue()],
server:{
host: '0.0.0.0'
+ },
+ build: {
+ rollupOptions: {
+ output: {
+ entryFileNames: 'index.js',
+ chunkFileNames: '[name].js',
+ assetFileNames: '[name][extname]'
+ }
+ }
}
})