- request.js 超时 10s->60s,适配长耗时接口 - ArticleEdit 复制并新建按钮加 loading 防重复点击 Ultraworked with [Sisyphus](https://github.com/OhMyOpenCode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@@ -4,7 +4,7 @@ import router from '@/router'
const service = axios.create({
baseURL: process.env.VUE_APP_BASE_API || '',
- timeout: 10000
+ timeout: 60000
})
// 请求拦截器
@@ -14,7 +14,7 @@
<el-button type="primary" @click="handleReDraft" :loading="reDraftLoading">保存到草稿箱重新编辑</el-button>
</template>
<template v-if="readonly && articleStatus !== 'rejected'">
- <el-button type="default" @click="handleCopyAsNew">复制并新建</el-button>
+ <el-button type="default" @click="handleCopyAsNew" :loading="saving">复制并新建</el-button>
</div>