+
@@ -244,6 +244,7 @@ const app = getCurrentInstance();
* @param tipsText{String} 提示文字
* @param size{Number|String} 上传图片大小
* @param style{Number} 样式 0.默认样式 1.自定义样式1 2.自定义样式2
+ * @param isDelete{Boolean} 是否可以删除
* @return {*} update:model_value_upload
*/
const props = defineProps({
@@ -287,6 +288,10 @@ const props = defineProps({
type: Number,
default: 0,
},
+ isDelete: {
+ type: Boolean,
+ default: true,
+ },
});
const model_value_upload = defineModel({ type: Array as PropType, default: [] });
diff --git a/src/utils/request.ts b/src/utils/request.ts
index 53738501..e748026f 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -12,7 +12,7 @@ const message_error = (info: string) => {
messageInstance = ElMessage.error({
type: 'error',
message: info,
- duration: 60000,
+ duration: 30000,
showClose: true,
});
};
@@ -25,7 +25,7 @@ const index = window.location.href.lastIndexOf('?s=');
const pro_url = window.location.href.substring(0, index);
const service = axios.create({
baseURL: import.meta.env.VITE_APP_BASE_API == '/dev-api' ? import.meta.env.VITE_APP_BASE_API : pro_url + '?s=',
- timeout: 3000,
+ timeout: 60000,
headers: { 'Content-Type': 'application/json;charset=utf-8' },
});
/** @ts-ignore */