mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 17:18:40 +08:00
Merge branch 'release'
This commit is contained in:
commit
fc06faa5a6
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: weisheng
|
||||
* @Date: 2025-09-21 17:13:45
|
||||
* @LastEditTime: 2025-09-21 19:33:17
|
||||
* @LastEditTime: 2025-09-21 19:53:54
|
||||
* @LastEditors: weisheng
|
||||
* @Description:
|
||||
* @FilePath: /wot-design-uni/docs/.vitepress/theme/components/AsideSponsors.vue
|
||||
@ -30,6 +30,7 @@ const isGoldSponsorsOdd = computed(() => {
|
||||
|
||||
<template>
|
||||
<div class="VPDocAsideSponsors">
|
||||
<a class="sponsors-aside-text" href="/reward/sponsor">赞助位</a>
|
||||
<div class="VPSponsors vp-sponsor aside">
|
||||
<!-- 超级赞助:一行一个 -->
|
||||
<section class="vp-sponsor-section" v-if="superSponsors?.items.length">
|
||||
@ -86,10 +87,6 @@ const isGoldSponsorsOdd = computed(() => {
|
||||
</template>
|
||||
|
||||
<style>
|
||||
.VPDocAsideSponsors{
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.vp-sponsor-grid-text {
|
||||
color: var(--vp-c-text-2);
|
||||
font-size: 12px;
|
||||
@ -98,4 +95,14 @@ const isGoldSponsorsOdd = computed(() => {
|
||||
.dark .vp-sponsor-grid-text {
|
||||
color: var(--vp-c-gray-1);
|
||||
}
|
||||
|
||||
a.sponsors-aside-text {
|
||||
color: var(--vp-c-text-3);
|
||||
display: block;
|
||||
margin: 2em 0 1em;
|
||||
font-weight: 700;
|
||||
font-size: 11px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.4px;
|
||||
}
|
||||
</style>
|
||||
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Author: weisheng
|
||||
* @Date: 2025-09-21 19:12:03
|
||||
* @LastEditTime: 2025-09-21 19:37:14
|
||||
* @LastEditTime: 2025-09-21 19:52:54
|
||||
* @LastEditors: weisheng
|
||||
* @Description:
|
||||
* @FilePath: /wot-design-uni/docs/.vitepress/theme/composables/adSponsor.ts
|
||||
@ -38,7 +38,7 @@ export function useAdSponsor() {
|
||||
const fetchData = async () => {
|
||||
for (const url of urls) {
|
||||
try {
|
||||
const response = await axios.get(url, {
|
||||
const response = await axios.get(url + '?t=' + Date.now(), {
|
||||
timeout: 5000 // 设置5秒超时
|
||||
})
|
||||
return response?.data?.data // 成功获取数据后直接返回
|
||||
|
||||
@ -21,7 +21,7 @@ export function useAds() {
|
||||
const fetchData = async () => {
|
||||
for (const url of urls) {
|
||||
try {
|
||||
const response = await axios.get(url, {
|
||||
const response = await axios.get(url + '?t=' + Date.now(), {
|
||||
timeout: 5000 // 设置5秒超时
|
||||
})
|
||||
return response.data && response.data.ads ? response.data.ads : [] // 成功获取数据后直接返回
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Author: weisheng
|
||||
* @Date: 2025-08-30 13:06:10
|
||||
* @LastEditTime: 2025-09-21 15:07:39
|
||||
* @LastEditTime: 2025-09-21 19:53:02
|
||||
* @LastEditors: weisheng
|
||||
* @Description:
|
||||
* @FilePath: /wot-design-uni/docs/.vitepress/theme/composables/cases.ts
|
||||
@ -31,7 +31,7 @@ export function useCaseData() {
|
||||
for (const url of urls) {
|
||||
try {
|
||||
const path = '/cases.json'
|
||||
const response = await axios.get(url + path, {
|
||||
const response = await axios.get(url + path + '?t=' + Date.now(), {
|
||||
timeout: 5000 // 设置5秒超时
|
||||
})
|
||||
const data = response.data && response.data.data ? response.data.data : []
|
||||
|
||||
@ -26,7 +26,7 @@ export function useFriendly() {
|
||||
const fetchData = async () => {
|
||||
for (const url of urls) {
|
||||
try {
|
||||
const response = await axios.get(url, {
|
||||
const response = await axios.get(url + '?t=' + Date.now(), {
|
||||
timeout: 5000 // 设置5秒超时
|
||||
})
|
||||
return response.data && response.data.links ? response.data.links : [] // 成功获取数据后直接返回
|
||||
|
||||
@ -1,12 +1,3 @@
|
||||
/*
|
||||
* @Author: weisheng
|
||||
* @Date: 2025-09-21 15:01:29
|
||||
* @LastEditTime: 2025-09-21 18:00:09
|
||||
* @LastEditors: weisheng
|
||||
* @Description:
|
||||
* @FilePath: /wot-design-uni/docs/.vitepress/theme/composables/sponsor.ts
|
||||
* 记得注释
|
||||
*/
|
||||
import { ref, onMounted } from 'vue'
|
||||
import axios from 'axios'
|
||||
|
||||
@ -29,7 +20,7 @@ export function useSponsor() {
|
||||
const fetchData = async () => {
|
||||
for (const url of urls) {
|
||||
try {
|
||||
const response = await axios.get(url, {
|
||||
const response = await axios.get(url + '?t=' + Date.now(), {
|
||||
timeout: 5000 // 设置5秒超时
|
||||
})
|
||||
return response.data // 成功获取数据后直接返回
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user