This commit is contained in:
telangpu
2026-04-30 15:47:51 +08:00
parent 6ca7068590
commit f438710ac8
4 changed files with 157 additions and 86 deletions

View File

@@ -5,7 +5,7 @@ VITE_PORT = 8848
VITE_PUBLIC_PATH = ./ VITE_PUBLIC_PATH = ./
# 网站前缀 # 网站前缀
VITE_BASE_URL = "up.xx.sczqb6.top" VITE_BASE_URL = "cwtyqal8.dagf7.top"
# 开发环境路由历史模式Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数" # 开发环境路由历史模式Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数"
VITE_ROUTER_HISTORY = "hash" VITE_ROUTER_HISTORY = "hash"

File diff suppressed because one or more lines are too long

View File

@@ -1,61 +0,0 @@
<template>
<div
v-if="isLoading"
class="loading-overlay-goods"
:style="{ backgroundColor: loadingBg.value }"
>
<div class="spinner-goods"></div>
</div>
</template>
<script lang="ts">
import { computed, defineComponent } from "vue";
import { useLoadingStore } from "@/stores/loadingStore";
import { loadingBg } from "@/utils/common";
export default defineComponent({
computed: {
loadingBg() {
return loadingBg;
},
},
setup() {
const loadingStore = useLoadingStore();
const isLoading = computed(() => loadingStore.isLoading);
return {
isLoading,
};
},
});
</script>
<style>
.loading-overlay-goods {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
background-color: rgba(0, 0, 0, 0.45);
}
.spinner-goods {
border: 4px solid rgb(207, 207, 207);
border-top: 4px solid var(--global-primary-color);
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
</style>

File diff suppressed because one or more lines are too long