refactor(app): 重构应用配置和样式
- 移除 colorMode 相关代码 - 删除全局样式文件 - 更新 nuxt 配置: - 添加 runtimeConfig - 更新 css 配置 - 优化 vite构建配置 - 新增 image 模块配置 - 更新路由配置 - 调整组件实现 - 更新环境变量加载方式
This commit is contained in:
parent
3b8bd623c0
commit
e541d0b21d
@ -8,6 +8,9 @@ useHead({
|
|||||||
{ name: 'keywords', content: useI18n().t('appSetting.appKeyWords') },
|
{ name: 'keywords', content: useI18n().t('appSetting.appKeyWords') },
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
const mode = computed(() => {
|
||||||
|
return ''
|
||||||
|
})
|
||||||
|
|
||||||
// 添加路由中间件来处理过渡方向
|
// 添加路由中间件来处理过渡方向
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@ -37,7 +40,7 @@ provide('slideDirection', slideDirection)
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<VanConfigProvider>
|
<VanConfigProvider theme="light">
|
||||||
<NuxtLoadingIndicator
|
<NuxtLoadingIndicator
|
||||||
color="repeating-linear-gradient(to right,var(--c-primary) 0%,var(--c-primary-active) 100%)" />
|
color="repeating-linear-gradient(to right,var(--c-primary) 0%,var(--c-primary-active) 100%)" />
|
||||||
<NuxtLayout>
|
<NuxtLayout>
|
||||||
@ -49,6 +52,7 @@ provide('slideDirection', slideDirection)
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@import "@/static/styles/index.css";
|
||||||
.slide-left-enter-active,
|
.slide-left-enter-active,
|
||||||
.slide-left-leave-active,
|
.slide-left-leave-active,
|
||||||
.slide-right-enter-active,
|
.slide-right-enter-active,
|
||||||
|
@ -158,7 +158,7 @@ const goLogin =async () => {
|
|||||||
<div />
|
<div />
|
||||||
</div>
|
</div>
|
||||||
<div class="mt-[55px]">
|
<div class="mt-[55px]">
|
||||||
<van-button :loading="loadingRef.loading1" v-if="phoneNum" :loading-text="$t('login.getCode')" type="primary" block style="height: 48px" @click="getCode">{{ $t('login.getCode')
|
<van-button :loading="loadingRef.loading1" v-if="phoneNum" :loading-text="$t('login.getCode')" color="#2B53AC" block style="height: 48px" @click="getCode">{{ $t('login.getCode')
|
||||||
}}</van-button>
|
}}</van-button>
|
||||||
<van-button v-else type="primary" color="#D3D3D3" block style="height: 48px">{{ $t('login.getCode')
|
<van-button v-else type="primary" color="#D3D3D3" block style="height: 48px">{{ $t('login.getCode')
|
||||||
}}</van-button>
|
}}</van-button>
|
||||||
|
3
app/static/styles/index.css
Normal file
3
app/static/styles/index.css
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
:root{
|
||||||
|
--van-primary-color:'#2B53AC';
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user