Skip to content

Commit

Permalink
hua aide-pro(add app subPage)
Browse files Browse the repository at this point in the history
  • Loading branch information
yichen9247 committed Aug 16, 2024
1 parent 42eb8e9 commit fe96083
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/pages/PageHome.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- eslint-disable no-undef -->

<script setup>
import { reactive, ref } from 'vue'
import { reactive, ref } from 'vue';
import utils from '@/scripts/utils';
import HeadModel from '@/model/HeadModel.vue';
import MainModel from '@/model/MainModel.vue';
Expand Down Expand Up @@ -43,8 +43,8 @@
await utils.axiostool.sendHttpGet(utils.apiConfig.version).then((data) => {
requestStatus.isHisVerOpen = true;
requestDatas.isHisVerOpen = data.data;
}).catch(async (error) => {
throw new Error(error);
}).catch(async () => {
ElMessage({ message: '请求接口失败', type: 'error', plain: true});
});
}
}
Expand All @@ -55,8 +55,8 @@
await utils.axiostool.sendHttpGet(utils.apiConfig.contack).then((data) => {
requestStatus.isContacOpen = true;
requestDatas.isContacOpen = data.data;
}).catch(async (error) => {
throw new Error(error);
}).catch(async () => {
ElMessage({ message: '请求接口失败', type: 'error', plain: true});
});
}
}
Expand All @@ -67,8 +67,8 @@
await utils.axiostool.sendHttpGet(utils.apiConfig.thanks).then((data) => {
requestStatus.isThanksOpen = true;
requestDatas.isThanksOpen = data.data;
}).catch(async (error) => {
throw new Error(error);
}).catch(async () => {
ElMessage({ message: '请求接口失败', type: 'error', plain: true});
});
}
}
Expand All @@ -79,8 +79,8 @@
await utils.axiostool.sendHttpGet(utils.apiConfig.support).then((data) => {
requestStatus.isSupporOpen = true;
requestDatas.isSupporOpen = data.data.data.list;
}).catch(async (error) => {
throw new Error(error);
}).catch(async () => {
ElMessage({ message: '请求接口失败', type: 'error', plain: true});
});
}
}
Expand Down
1 change: 0 additions & 1 deletion src/pages/PageSupport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
<template>
<div class="page-support page-container">
<header class="page-header">支持人员</header>

<van-notice-bar text="由于部分数据丢失显示不全,请谅解。" @click="router.push('/donate')"/>

<div class="contact-card" v-for="(item,index) in supPersonList" :key="index">
Expand Down

0 comments on commit fe96083

Please sign in to comment.