fix: 优化token信息获取逻辑 添加空值校验

This commit is contained in:
2025-09-02 12:38:20 +08:00
parent b47e1fa881
commit 5ee4291356

View File

@@ -7,6 +7,7 @@ const result = ref()
const value = ref('')
const getInfo = () => {
if (value.value != '') {
axios.get('/api/token/info', {
params: {
token: value.value
@@ -16,6 +17,7 @@ const getInfo = () => {
result.value = res.data.result
}
})
}
}
const deleteDedup = () => {
@@ -43,7 +45,6 @@ getInfo()
setInterval(getInfo, 5000)
watch(value, (newValue) => {
console.log(newValue)
getInfo()
})