Compare commits

...

3 Commits

Author SHA1 Message Date
root 33f38f42cc Merge branch 'main-44133d0c9' into pms-dev 2024-08-04 04:22:49 +08:00
pixelmaxQM a44133d0c9 fixed: 修复在同时开启多个窗口的情况下刷新页面导致的死循环情况 2024-08-04 11:12:43 +08:00
root 78e1126536 更新autocode的web目录 2024-08-04 04:17:53 +08:00
2 changed files with 7 additions and 3 deletions

View File

@ -6,11 +6,11 @@ aliyun-oss:
bucket-url: yourBucketUrl
base-path: yourBasePath
autocode:
web: web/src
web: ../web/src # 默认前端目录为web/src启用1panel的go开发环境需要在把前端web映射到后端容器内不然无法生成前端代码
root: /
server: app # 默认后端目录为server启用1panel中的go开发环境后端目录为app
module: github.com/flipped-aurora/gin-vue-admin/server
ai-path: ""
ai-path: "https://ai.gin-vue-admin.com/{FUNC}/SysProChan/cc51f596-f510-46e8-9206-4508d33eae37"
aws-s3:
bucket: xxxxx-10005608
region: ap-shanghai

View File

@ -63,7 +63,11 @@ const vueFilePathPlugin = (outputFilePath) => {
return html.replace(
'</body>',
`<script>
const isWindowActive = () => !document.hidden;
window.addEventListener('beforeunload', function () {
if (!isWindowActive()) {
return;
}
fetch('/generate-path-name-map');
});
</script></body>`