补构建配置并新增 .gitignore:线上依赖的 base 与固定产物名入库
vite.config.js:加 base:'/asserts/index/'、assetsDir:''、固定产物名 (entryFileNames:'index.js' 等)。当前线上 /var/www/lionwebsite/asserts/index/ 的 index.js/index.css/index.html 均依赖此配置才能构建出来——属线上在用 但未入库的配置,不提交会导致 clone 后构建产物路径与线上不一致; index.html:favicon 改为 /asserts/favicon.ico(与线上入口一致); llm_readme.md:补文件末尾换行; 新增 .gitignore(npm 模板 + run.out):忽略 node_modules、dist、日志与编辑器文件。
This commit is contained in:
+1
-1
@@ -198,4 +198,4 @@ npm run preview # 预览构建产物
|
||||
2. `state.websocket` 在 Vuex 中初始化为 `{}` 而非 `null`,检查方式不够严谨
|
||||
3. `getShortname` 函数逻辑复杂且有多处副作用,可读性较低
|
||||
4. 部分错误处理较简略(如 `queryGalleries` 中无网络错误处理)
|
||||
5. `store/index.js` 中 action 使用全局 `state` 变量(而非 `context.state`),可能导致作用域混淆
|
||||
5. `store/index.js` 中 action 使用全局 `state` 变量(而非 `context.state`),可能导致作用域混淆
|
||||
|
||||
Reference in New Issue
Block a user