-
-
+
+
-
+
-
+
-
-
-
@@ -161,20 +158,18 @@ import type { VForm } from '@/types'
import http from '@/utils/http'
class MusicPage extends Page {
- name?: string
- ext: string[] = []
+ exts: string[] = []
title?: string
album?: string
artist?: string
- libId?: string[] = []
+ libIds?: string[] = []
reset() {
super.reset()
- this.name = undefined
- this.ext = []
+ this.exts = []
this.title = undefined
this.album = undefined
this.artist = undefined
- this.libId = []
+ this.libIds = []
}
}
diff --git a/src/views/api/PhotoWall.vue b/src/views/api/PhotoWall.vue
index 56904c7..d491101 100644
--- a/src/views/api/PhotoWall.vue
+++ b/src/views/api/PhotoWall.vue
@@ -9,22 +9,22 @@
-
+
≥
-
+
≤
-
+
≥
-
+
≤
@@ -88,17 +88,17 @@ import http from '@/utils/http'
class PhotoWallPage extends Page {
name?: string
- widthMin?: number = 0
- widthMax?: number = 0
- heightMin?: number = 0
- heightMax?: number = 0
+ widthMin!: number | null
+ widthMax!: number | null
+ heightMin!: number | null
+ heightMax!: number | null
reset() {
super.reset()
this.name = undefined
- this.widthMin = 0
- this.widthMax = 0
- this.heightMin = 0
- this.heightMax = 0
+ this.widthMin = null
+ this.widthMax = null
+ this.heightMin = null
+ this.heightMax = null
}
}
diff --git a/src/views/system/SystemConfig.vue b/src/views/system/SystemConfig.vue
index 0da925c..51e7e45 100644
--- a/src/views/system/SystemConfig.vue
+++ b/src/views/system/SystemConfig.vue
@@ -123,7 +123,7 @@ async function save() {
function remove(row: SystemConfigModel) {
ElMessageBox.confirm(`是否确认删除 ${row.name} 配置项?`, '确认删除', {type: 'warning'}).then(async () => {
const data = await http.delete<{params: {id: string}}, any>('/api/v2/system/config/delete', {params: {id: row._id}})
- if(data.status) {
+ if(data.code === 0) {
ElMessage.success(data.message)
loadData()
} else {
diff --git a/src/views/system/SystemRole.vue b/src/views/system/SystemRole.vue
index 7e9e5f1..c8e62ef 100644
--- a/src/views/system/SystemRole.vue
+++ b/src/views/system/SystemRole.vue
@@ -196,7 +196,7 @@ function update(row: SystemRoleModel) {
function remove(row: SystemRoleModel) {
ElMessageBox.confirm(`是否确认删除 ${row.name} 角色?`, '确认删除', {type: 'warning'}).then(async () => {
const data = await http.delete<{params: {id: string}}, any>('/api/v2/system/role/delete', {params: {id: row._id}})
- if(data.status) {
+ if(data.code === 0) {
ElMessage.success(data.message)
loadData()
} else {
diff --git a/src/views/system/SystemUser.vue b/src/views/system/SystemUser.vue
index f12bedc..4d047db 100644
--- a/src/views/system/SystemUser.vue
+++ b/src/views/system/SystemUser.vue
@@ -175,7 +175,7 @@ async function save() {
function remove(row: SystemUserModel) {
ElMessageBox.confirm(`是否确认删除 ${row.username} 用户?`, '确认删除', {type: 'warning'}).then(async () => {
const data = await http.delete<{params: {id: string}}, any>('/api/v2/system/user/delete', {params: {id: row._id}})
- if(data.status) {
+ if(data.code === 0) {
ElMessage.success(data.message)
loadData()
} else {