优化每日推送和积分转化多语言样式
This commit is contained in:
@@ -113,7 +113,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { FormInstance, FormRules } from 'element-plus'
|
||||
import { ElMessageBox } from 'element-plus'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { onMounted, reactive, ref, useTemplateRef } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { calculateLifetimePoints, index, save } from '/@/api/backend/mall/playxConfig'
|
||||
@@ -204,7 +204,15 @@ const onCalculateLifetime = () => {
|
||||
}).then(() => {
|
||||
calculating.value = true
|
||||
calculateLifetimePoints()
|
||||
.then(() => {
|
||||
.then((res) => {
|
||||
const stats = res.data ?? {}
|
||||
ElMessage.success(
|
||||
t('mall.playxConfig.calculate_lifetime_success', {
|
||||
processed: stats.processed ?? 0,
|
||||
updated: stats.updated ?? 0,
|
||||
skipped: stats.skipped ?? 0,
|
||||
})
|
||||
)
|
||||
loadData()
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
Reference in New Issue
Block a user