修复pages/history/index

This commit is contained in:
刘正航
2026-05-11 15:57:53 +08:00
parent 00ead01cb8
commit 45bfa93e85
2 changed files with 14 additions and 1 deletions

View File

@@ -214,6 +214,19 @@ Page({
this.fetchList()
},
showTokenWeight(e) {
const token = e.currentTarget.dataset.token
const weight = e.currentTarget.dataset.weight
const weightNum = Number(weight || 0)
const direction = weightNum >= 0 ? '倾向垃圾判定' : '倾向正常判定'
wx.showModal({
title: '关键词权重',
content: `关键词"${token}"\n权重贡献:${weightNum >= 0 ? '+' : ''}${weightNum.toFixed(4)}\n(${direction})`,
showCancel: false,
confirmText: '关闭'
})
},
removeItem(e) {
const id = Number(e.currentTarget.dataset.id)
wx.showModal({