Skip to content

Commit

Permalink
chore: 默认超时的说明
Browse files Browse the repository at this point in the history
  • Loading branch information
xream committed Jan 17, 2024
1 parent a4e9871 commit c3ea821
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sub-store-front-end",
"version": "2.14.72",
"version": "2.14.73",
"private": true,
"scripts": {
"dev": "vite --host",
Expand Down
15 changes: 14 additions & 1 deletion src/views/My.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@
type="number"
input-align="left"
:left-icon="iconTimeout"
right-icon="tips"
@click-right-icon="timeoutTips"
/>
</div>
</div>
Expand Down Expand Up @@ -247,6 +249,7 @@ import { useI18n } from "vue-i18n";
import { useRouter } from "vue-router";
import { useBackend } from "@/hooks/useBackend";
import { useHostAPI } from '@/hooks/useHostAPI';
import { Dialog, Toast } from '@nutui/nutui';
const { t } = useI18n();
Expand Down Expand Up @@ -415,7 +418,17 @@ const sync = async (query: "download" | "upload") => {
downloadIsLoading.value = false;
uploadIsLoading.value = false;
};
const timeoutTips = () => {
Dialog({
title: '可尝试设置为 3000~4000',
content: '防止拉取结果的总时长超过代理 app 加载外部资源的最大等待时长, 确保拉取成功',
popClass: 'auto-dialog',
okText: 'OK',
noCancelBtn: true,
closeOnPopstate: true,
lockScroll: true,
});
};
// store 刷新数据完成后 复制内容给 input 绑定
const { isLoading: storeIsLoading, env: backendEnv } = storeToRefs(useGlobalStore());
watchEffect(() => {
Expand Down

0 comments on commit c3ea821

Please sign in to comment.