Compare commits
3 Commits
0d09ac6eb1
...
33f38f42cc
Author | SHA1 | Date |
---|---|---|
|
33f38f42cc | |
|
a44133d0c9 | |
|
78e1126536 |
|
@ -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
|
||||
|
|
|
@ -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>`
|
||||
|
@ -97,4 +101,4 @@ const vueFilePathPlugin = (outputFilePath) => {
|
|||
};
|
||||
}
|
||||
|
||||
export default vueFilePathPlugin
|
||||
export default vueFilePathPlugin
|
||||
|
|
Loading…
Reference in New Issue