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 # base api url
# VITE_BASE_API_URL = 'https://nest-api.buqiyuan.site' # VITE_BASE_API_URL = 'https://nest-api.buqiyuan.site'
# VITE_BASE_API_URL = 'http://123.249.107.55' # 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 VITE_BASE_URL = /api

View File

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