build: prod url

This commit is contained in:
louis 2024-02-28 14:16:55 +08:00
parent 051213b5e5
commit 424bde5b16
2 changed files with 9 additions and 9 deletions

View File

@ -4,7 +4,7 @@ ENV = 'production'
# base api url
# VITE_BASE_API_URL = 'https://nest-api.buqiyuan.site'
# VITE_BASE_API_URL = 'http://123.249.107.55'
VITE_BASE_API_URL = 'http://localhost'
VITE_BASE_API_URL = 'http://123.249.107.55'
# 公共基础路径, 所有资源的路径都将据此配置重写。
VITE_BASE_URL = /api

View File

@ -2,14 +2,14 @@
<div>
<router-view v-slot="{ Component }">
<template v-if="Component">
<transition mode="out-in">
<Suspense>
<component :is="Component" />
<template #fallback>
<a-skeleton />
</template>
</Suspense>
</transition>
<!-- <transition mode="out-in" :duration="100"> -->
<Suspense>
<component :is="Component" />
<template #fallback>
<a-skeleton />
</template>
</Suspense>
<!-- </transition> -->
</template>
</router-view>
</div>