Skip to content

Commit

Permalink
修复壁纸接口参数
Browse files Browse the repository at this point in the history
  • Loading branch information
lonely-starry committed Mar 11, 2024
1 parent eefaca7 commit 7ca3b8c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/components/Background.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ const bgRandom = Math.floor(Math.random() * 10 + 1);
// 更换壁纸链接
const changeBg = (type) => {
if (type == 4) {
bgUrl.value = `/images/background${bgRandom}.jpg`;
if (type == 0) {
bgUrl.value = "https://api.lonelyx.cn/api/";
} else if (type == 1) {
bgUrl.value = "https://api.dujin.org/bing/1920.php";
} else if (type == 2) {
bgUrl.value = "https://api.aixiaowai.cn/gqapi/gqapi.php";
} else if (type == 0) {
bgUrl.value = "https://api.lonelyx.cn/api/";
} else if (type == 3) {
bgUrl.value = `/images/background${bgRandom}.jpg`;
}
};
Expand Down
4 changes: 2 additions & 2 deletions src/components/Set.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<el-collapse-item title="个性壁纸" name="1">
<div class="bg-set">
<el-radio-group v-model="coverType" text-color="#ffffff" @change="radioChange">
<el-radio value="4" size="large" border>默认壁纸</el-radio>
<el-radio value="0" size="large" border>默认壁纸</el-radio>
<el-radio value="1" size="large" border>每日一图</el-radio>
<el-radio value="2" size="large" border>随机风景</el-radio>
<el-radio value="0" size="large" border>随机动漫</el-radio>
<el-radio value="3" size="large" border>静态壁纸</el-radio>
</el-radio-group>
</div>
</el-collapse-item>
Expand Down

0 comments on commit 7ca3b8c

Please sign in to comment.