This commit is contained in:
2026-06-12 15:30:50 +08:00
parent 742a0ff388
commit b23d3bfa79
58 changed files with 10475 additions and 474 deletions
+5 -5
View File
@@ -333,7 +333,7 @@ layout("/layouts/v4/baseLayout.html"){
methods: {
async loadStats() {
try {
const resp = await this.$axios.get('/platform/v4/msg/stats')
const resp = await Promise.resolve(this.$axios.get('/platform/v4/msg/stats'))
if (resp.code === 0) {
this.stats = resp.data
}
@@ -345,7 +345,7 @@ layout("/layouts/v4/baseLayout.html"){
async loadMessages() {
this.loading = true
try {
const resp = await this.$axios.post('/platform/v4/msg/pageData', this.pageForm)
const resp = await Promise.resolve(this.$axios.post('/platform/v4/msg/pageData', this.pageForm))
if (resp.code === 0) {
this.messages = resp.data.list
this.pageForm.totalCount = resp.data.totalCount
@@ -360,7 +360,7 @@ layout("/layouts/v4/baseLayout.html"){
},
async viewMessage(message) {
this.$axios.post(`/platform/v4/msg/detail/` + message.id).then(async res => {
this.$axios.post('/platform/v4/msg/detail/' + message.id).then(async res => {
if (res.code === 0) {
this.currentMessage = res.data
this.detailVisible = true
@@ -376,7 +376,7 @@ layout("/layouts/v4/baseLayout.html"){
async markAsRead(messageId) {
try {
await this.$axios.post(`/platform/v4/msg/read/` + messageId)
await Promise.resolve(this.$axios.post('/platform/v4/msg/read/' + messageId))
} catch (error) {
console.error('标记已读失败:', error)
}
@@ -390,7 +390,7 @@ layout("/layouts/v4/baseLayout.html"){
}).then(async () => {
this.loading = true
try {
const resp = await this.$axios.post('/platform/v4/msg/read/all')
const resp = await Promise.resolve(this.$axios.post('/platform/v4/msg/read/all'))
if (resp.code === 0) {
this.$message.success('操作成功')
this.loadMessages()