修复协议错误
This commit is contained in:
@@ -65,7 +65,7 @@ async function handleDelete(row: any) {
|
||||
inputType: 'password',
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
}).catch(() => {})
|
||||
}).catch(() => ({ value: '' }))
|
||||
if (!pwd) {
|
||||
ElMessage.warning('请输入验证密码')
|
||||
return
|
||||
@@ -94,7 +94,7 @@ async function handleSave() {
|
||||
inputType: 'password',
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
}).catch(() => {})
|
||||
}).catch(() => ({ value: '' }))
|
||||
if (!pwd) {
|
||||
ElMessage.warning('请输入验证密码')
|
||||
return
|
||||
@@ -132,7 +132,7 @@ async function handleAssignRoles() {
|
||||
inputType: 'password',
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
}).catch(() => {})
|
||||
}).catch(() => ({ value: '' }))
|
||||
if (!pwd) {
|
||||
ElMessage.warning('请输入验证密码')
|
||||
return
|
||||
|
||||
@@ -89,8 +89,8 @@ async function fetchData() {
|
||||
newMemberData[i] = res?.newMembers ?? 0
|
||||
activeMemberData[i] = res?.activeMembers ?? 0
|
||||
if (i === todayIdx) {
|
||||
statCards.value[0].value = res?.totalMembers ?? 0
|
||||
statCards.value[1].value = res?.newMembers ?? 0
|
||||
statCards.value[0]!.value = res?.totalMembers ?? 0
|
||||
statCards.value[1]!.value = res?.newMembers ?? 0
|
||||
}
|
||||
}).catch(() => {}),
|
||||
|
||||
@@ -98,14 +98,14 @@ async function fetchData() {
|
||||
bookingData[i] = res?.newBookings ?? 0
|
||||
cancelData[i] = res?.cancelBookings ?? 0
|
||||
if (i === todayIdx) {
|
||||
statCards.value[3].value = res?.newBookings ?? 0
|
||||
statCards.value[3]!.value = res?.newBookings ?? 0
|
||||
}
|
||||
}).catch(() => {}),
|
||||
|
||||
getSignInStatistics(range).then((res: any) => {
|
||||
signinData[i] = res?.totalSignIns ?? 0
|
||||
if (i === todayIdx) {
|
||||
statCards.value[2].value = res?.totalSignIns ?? 0
|
||||
statCards.value[2]!.value = res?.totalSignIns ?? 0
|
||||
}
|
||||
}).catch(() => {}),
|
||||
)
|
||||
@@ -116,7 +116,7 @@ async function fetchData() {
|
||||
getRevenueStatistics().then((res: any) => {
|
||||
const data = res?.data
|
||||
if (data) {
|
||||
statCards.value[4].value = (data.todayIncome ?? 0).toFixed(2)
|
||||
statCards.value[4]!.value = (data.todayIncome ?? 0).toFixed(2)
|
||||
}
|
||||
}).catch(() => {}),
|
||||
)
|
||||
|
||||
@@ -123,7 +123,7 @@ async function fetchData() {
|
||||
const cache: Record<number, LabelItem[]> = {}
|
||||
labelResults.forEach((result, i) => {
|
||||
if (result.status === 'fulfilled' && Array.isArray(result.value)) {
|
||||
cache[arr[i].id] = result.value as LabelItem[]
|
||||
cache[arr[i]!.id] = result.value as LabelItem[]
|
||||
}
|
||||
})
|
||||
labelCache.value = cache
|
||||
|
||||
@@ -147,7 +147,7 @@ function handleSearch() {
|
||||
function resetFilters() {
|
||||
keyword.value = ''
|
||||
genderFilter.value = null
|
||||
sortBy.value = sortOptions[0]
|
||||
sortBy.value = sortOptions[0]!
|
||||
currentPage.value = 1
|
||||
}
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ async function handleDelete(row: any) {
|
||||
inputType: 'password',
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
}).catch(() => {})
|
||||
}).catch(() => ({ value: '' }))
|
||||
if (!pwd) {
|
||||
ElMessage.warning('请输入验证密码')
|
||||
return
|
||||
@@ -151,7 +151,7 @@ async function handleSave() {
|
||||
inputType: 'password',
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
}).catch(() => {})
|
||||
}).catch(() => ({ value: '' }))
|
||||
if (!pwd) {
|
||||
ElMessage.warning('请输入验证密码')
|
||||
return
|
||||
@@ -189,7 +189,7 @@ async function handleAssignPerms() {
|
||||
inputType: 'password',
|
||||
confirmButtonText: '确定',
|
||||
cancelButtonText: '取消',
|
||||
}).catch(() => {})
|
||||
}).catch(() => ({ value: '' }))
|
||||
if (!pwd) {
|
||||
ElMessage.warning('请输入验证密码')
|
||||
return
|
||||
|
||||
@@ -6,6 +6,7 @@ import vueDevTools from 'vite-plugin-vue-devtools'
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
base: '/cuit/',
|
||||
plugins: [
|
||||
vue(),
|
||||
vueDevTools(),
|
||||
|
||||
Reference in New Issue
Block a user