diff --git a/src/apis/system/smsConfig.ts b/src/apis/system/smsConfig.ts
index b74917d..3da508f 100644
--- a/src/apis/system/smsConfig.ts
+++ b/src/apis/system/smsConfig.ts
@@ -29,3 +29,8 @@ export function updateSmsConfig(data: any, id: string) {
export function deleteSmsConfig(id: string) {
return http.del(`${BASE_URL}`, { ids: [id] })
}
+
+/** @desc 设置默认配置 */
+export function setDefaultSmsConfig(id: string) {
+ return http.put(`${BASE_URL}/${id}/default`)
+}
diff --git a/src/apis/system/type.ts b/src/apis/system/type.ts
index f0bb895..e4487fa 100644
--- a/src/apis/system/type.ts
+++ b/src/apis/system/type.ts
@@ -379,6 +379,7 @@ export interface SmsConfigResp {
maximum: string
supplierConfig: string
status: number
+ isDefault: boolean
createUser: string
createTime: string
updateUser: string
diff --git a/src/views/system/config/sms/index.vue b/src/views/system/config/sms/index.vue
index dd9f624..d7ceb00 100644
--- a/src/views/system/config/sms/index.vue
+++ b/src/views/system/config/sms/index.vue
@@ -33,6 +33,10 @@
新增
+
+ 是
+ 否
+
@@ -43,15 +47,26 @@
发送记录
修改
-
- 删除
-
+
+
+
+
+
+
+
+
+ 设为默认
+
+
+ 删除
+
+
+
@@ -61,9 +76,16 @@