config: 修改打包配置

This commit is contained in:
xlsea 2024-05-25 11:00:02 +08:00
parent 902b559f32
commit 56754b1ac2
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
VITE_BASE_URL=/
# backend service base url, prod environment
VITE_SERVICE_BASE_URL=/proxy-default
VITE_SERVICE_BASE_URL=/snail-job
# other backend service base url, prod environment
VITE_OTHER_SERVICE_BASE_URL= `{

View File

@ -81,7 +81,7 @@ onActivated(() => {
<iframe
ref="iframeRef"
class="size-full"
:src="`${mode === 'prod' ? baseUrl + '/' : '/'}lib/index.html?id=${id}&mode=${mode}&x1c2Hdd6=${value}`"
:src="`${mode === 'prod' ? (baseUrl === '/' ? '/' : +'/') : '/'}lib/index.html?id=${id}&mode=${mode}&x1c2Hdd6=${value}`"
/>
</NSpin>
</template>